cargo-container-0.0.0 is not a library.
cargo-container
Wrap vanilla cargo rlibs/packages in generated "containers" for various ends.
- Clone this repository
- Open in VS Code
- Install extensions recommended by workspace
- Hit F5
This will build and run one of the example projects of [example/multiplatform] in Chrome
cargo install cargo-container- Author a
Container.tomlworkspace instead of a regularCargo.tomlworkspace- Write a
[workspace]like you would inCargo.toml, withmembers(and optionallyexclude) - Define one or more
[[build]]sections defining whatcratesto wrap with whattools - Optional: specify more crates to auto-install via
[local-install]
- Write a
- Author the crates to wrap in said boilerplate
- Run
cargo container build. This will:- Install any bin dependencies specified by
[local-install] - Run
toolsto generate Cargo.toml projects - Generate a
Cargo.tomlalongsideContainer.tomlthat references the generated dependencies - Runs
toolsto build generated Cargo.toml projects
- Install any bin dependencies specified by
- Profit!
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.