From the documentation you linked to:
# Features can be used to reexport features of other packages. The `session` # feature of package `awesome` will ensure that the `session` feature of the # package `cookie` is also enabled. session = ["cookie/session"]
Is that sufficient?
More Related Contents:
- Package with both a library and a binary?
- Why are Rust executables so huge?
- How do I use conditional compilation with `cfg` and Cargo?
- How do you enable a Rust “crate feature”?
- What is a crate attribute and where do I add it?
- How can a Rust program access metadata from its Cargo package?
- How do I specify the linker path in Rust?
- Can Cargo download and build dependencies without also building the application?
- Is there a list of all cfg features?
- How to idiomatically alias a crate in Rust 2018?
- How to tell what “features” are available per crate?
- How can I build multiple binaries with Cargo?
- How to pass rustc flags to cargo?
- How do I pin indirect dependencies of a crate?
- Why does linking lifetimes matter only with mutable references?
- Why is adding a lifetime to a trait with the plus operator (Iterator + ‘a) needed?
- How do I borrow a RefCell, find a key, and return a reference to the result? [duplicate]
- How can I store a Chars iterator in the same struct as the String it is iterating on?
- How to disable unused code warnings in Rust?
- Is there a way other than traits to add methods to a type I don’t own?
- Why is the `Sized` bound necessary in this trait?
- Can’t borrow mutably within two different closures in the same scope
- What is the syntax to match on a reference to an enum?
- How can I implement Rust’s Copy trait?
- How to use a struct’s member as its own key when inserting the struct into a map without duplicating it?
- How to implement a custom ‘fmt::Debug’ trait?
- What is the prelude?
- How do I use a crate from another crate without explicitly defining a new dependency in my project?
- Is there an elegant solution to modifying a structure while iterating?
- How do I cope with lazy iterators?