<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/docs-rs-building-fewer-targets-by-default-nugbde1fe" -->

---
title: docs.rs: building fewer targets by default | daily.dev
description: Starting 2026-05-01, docs.rs will change its default build behavior: instead of building documentation for five targets, it will only build for the default...
canonical: https://daily.dev/posts/docs-rs-building-fewer-targets-by-default-nugbde1fe
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: docs.rs: building fewer targets by default | daily.dev
og:description: Starting 2026-05-01, docs.rs will change its default build behavior: instead of building documentation for five targets, it will only build for the default...
og:url: https://daily.dev/posts/docs-rs-building-fewer-targets-by-default-nugbde1fe
og:image: https://api.daily.dev/og/posts/nUgBde1fE.png
og:image:alt: docs.rs: building fewer targets by default
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# docs.rs: building fewer targets by default

**[Rust](https://daily.dev/sources/rust)** · 2 min read · 34 upvotes · 1 comments

## Summary

Starting 2026-05-01, docs.rs will change its default build behavior: instead of building documentation for five targets, it will only build for the default target (x86_64-unknown-linux-gnu) unless additional targets are explicitly specified in Cargo.toml metadata. Crates needing multi-target docs must define a full targets list in their docs.rs metadata. This change affects new releases and rebuilds of old releases, reduces build times, and saves resources.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.rust-lang.org/2026/04/04/docsrs-only-default-targets/>

## Similar posts on daily.dev

- [Announcing Rust 1.97.0](https://daily.dev/posts/announcing-rust-1-97-0-fqxhq3pfj) · Rust · 22 upvotes · 0 comments
- [Rust team warns of WebAssembly change](https://daily.dev/posts/rust-team-warns-of-webassembly-change-b9vvopmgq) · InfoWorld · 34 upvotes · 0 comments

---

Tags: [#rust](https://daily.dev/tags/rust)

[View this post on daily.dev](https://daily.dev/posts/docs-rs-building-fewer-targets-by-default-nugbde1fe)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"docs.rs: building fewer targets by default","url":"https://daily.dev/posts/docs-rs-building-fewer-targets-by-default-nugbde1fe","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/docs-rs-building-fewer-targets-by-default-nugbde1fe"},"datePublished":"2026-04-02T22:55:46.382Z","dateModified":"2026-04-02T22:56:02.726Z","description":"Starting 2026-05-01, docs.rs will change its default build behavior: instead of building documentation for five targets, it will only build for the default...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/10c030b2429f801a5aed8756bdece9d2?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/10c030b2429f801a5aed8756bdece9d2?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Rust","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Rust","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/8fb725c4025846578f65c8eada2fc5b8","url":"https://daily.dev/sources/rust"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/docs-rs-building-fewer-targets-by-default-nugbde1fe","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":34},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"rust","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Rust","item":"https://daily.dev/sources/rust"},{"@type":"ListItem","position":3,"name":"docs.rs: building fewer targets by default"}]}
```

