#cargo-toml #package #generate #version #dep-version #dependencie

truck

This is truck, a package which generates a cargo toml for you

1 stable release

1.0.0 Sep 20, 2020

#249 in #cargo-toml

MIT license

7KB
129 lines

Hello

This is truck, a package which generates a cargo toml for you

  1. You just create a truck.rs
  2. Put this in cargo.toml



build = "truck.rs"
[build-dependencies]
truck = "1.0.0"

  1. And wrtie this in your build.rs
use truck::prelude;
fn main() {
     CargoConf::new()
        .author(
            &["Jakob Nikolaus Neufeld"]
        ).edition("2018")
        .name("truck")
        .version("0.0.1")
        .license("MIT")
        .dependencie_section()
        .dependencie("toml", DepVersion::Version("0.5.6"))
        .dependencie("crates-io", "0.32.0")
        .write_to_cargo()
        ;
        
}

YOU ARE DONE!

Please report any bugs at jakob.n.neufeld@gmail.com

Also more features are coming like

  • more package section builder functions
  • more sections
  • a cargo-truck tool
  • and more.....

Dependencies

~11–20MB
~303K SLoC