Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

Commit

Permalink
Specify autobins = false in Cargo.toml
Browse files Browse the repository at this point in the history
`cargo build` warns:

    warning: An explicit [[bin]] section is specified in Cargo.toml which
    currently disables Cargo from automatically inferring other binary targets.
    This inference behavior will change in the Rust 2018 edition and the
    following files will be included as a binary target:

    * /Users/kivikakk/Code/Nicoretti/xxd-rs/src/bin/main.rs
    * /Users/kivikakk/Code/Nicoretti/xxd-rs/src/bin/cli.rs

    This is likely to break cargo build or cargo test as these files may not be
    ready to be compiled as a binary target today. You can future-proof yourself
    and disable this warning by adding `autobins = false` to your [package]
    section. You may also move the files to a location where Cargo would not
    automatically infer them to be a target, such as in subfolders.

    For more information on this warning you can consult
    rust-lang/cargo#5330
  • Loading branch information
kivikakk authored and Nicoretti committed Oct 5, 2018
1 parent faf1cdf commit fce1d25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ keywords = ["xxd", "hex-dump"]
license-file = "LICENSE"
version = "0.2.3"
build = "build.rs"
autobins = false

[badges]
appveyor = { repository = "Nicoretti/xxd-rs", branch = "master", service = "github" }
Expand Down

0 comments on commit fce1d25

Please sign in to comment.