Skip to content

matklad/features-behavior

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository demonstrates what behavior was changed by rust-lang/cargo#5364 (comment)

~/tmp/foo master* 10s
λ cargo +stable run -p bar --features xyz
   Compiling bar v0.1.0 (file:///home/matklad/tmp/foo/bar)
    Finished dev [unoptimized + debuginfo] target(s) in 0.35 secs
     Running `target/debug/bar`
xyz disabled

~/tmp/foo master*
λ cargo +nightly run -p bar --features xyz
   Compiling bar v0.1.0 (file:///home/matklad/tmp/foo/bar)
    Finished dev [unoptimized + debuginfo] target(s) in 0.37 secs
     Running `target/debug/bar`
xyz enabled

~/tmp/foo master
λ cargo +stable build --all --features xyz
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs

~/tmp/foo master
λ ./target/debug/bar
xyz disabled

~/tmp/foo master
λ cargo +nightly build --all --features xyz
error: cannot specify features for more than one package

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages