Code Monkey home page Code Monkey logo

Comments (10)

steveklabnik avatar steveklabnik commented on August 21, 2024 1

Oh, it's metadata http://doc.crates.io/manifest.html#the-metadata-table-optional

from docs.rs.

retep998 avatar retep998 commented on August 21, 2024 1

Would be really cool to have the default-target redirect working. It's incredibly frustrating when people look for the documentation for winapi only to find empty documentation.

from docs.rs.

Yamakaky avatar Yamakaky commented on August 21, 2024

Same idea, but different problem: https://docs.rs/crate/clang-sys fails to find libclang (obviously). There is a feature to do a runtime link instead of a compile time link, so it should fix the problem.

from docs.rs.

onur avatar onur commented on August 21, 2024

I will add building crates with extra features but where is best place to define docs.rs specific options?

Maybe a docs.rs section in Cargo.toml?

from docs.rs.

steveklabnik avatar steveklabnik commented on August 21, 2024

IIRC, we made a meta section of Cargo.toml for this kind of thing

from docs.rs.

frewsxcv avatar frewsxcv commented on August 21, 2024

A use-case I have: cocoa-rs is a crate managed by Servo. Servo currently does not build documentation on the OSX builders (https://doc.servo.org is Linux IIRC). It'd be nice if I could link to the documentation for cocoa-rs for the latest published version that was built on OSX. That said, I juts checked it looks like cocoa-rs isn't building on docs.rs, which makes my whole comment moot anyways.

from docs.rs.

bluss avatar bluss commented on August 21, 2024

Doc features are great. What I do in ndarray is to build with the "docs" feature that depends on the optional crate features. Then I've made sure each of the items enabled by that mentions this in the docs (“Requires crate feature "serde"”). Adding this to docs.rs would make it have "feature parity" and I'll switch.

from docs.rs.

onur avatar onur commented on August 21, 2024

This is partially fixed, looks like a commit closed this.

Docs.rs now supports building non-default features but it is not redirecting to default-target yet.

from docs.rs.

est31 avatar est31 commented on August 21, 2024

#255 fixed this

from docs.rs.

QuietMisdreavus avatar QuietMisdreavus commented on August 21, 2024

Crates that set a default-target in their [package.metadata.docs.rs] will now run their "test build" for that target, and their default docs set will be run on that target. In addition, crates with a default-target already set have had their latest version rebuilt; for example https://docs.rs/winapi/ now contains the proper docs for x86_64-pc-windows-msvc without having to redirect to that target's page. (Note that the builds still all run on a Linux system, so if your crate is target-specific because of a system library, that will still need to be available on Debian for the docs to build!)

from docs.rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.