cargo-example2

Crates.iocargo-example2
lib.rscargo-example2
version0.1.0
sourcesrc
created_at2023-06-08 08:20:14.934382
updated_at2023-06-08 08:20:14.934382
descriptioncargo run --example without git cloning
homepage
repositoryhttps://github.com/elbaro/cargo-example
max_upload_size
id885315
size30,014
elbaro (elbaro)

documentation

README

cargo-example2

cargo install cargo-example2

List examples

❯ cargo example https://github.com/clap-rs/clap-verbosity-flag

error: "--example" takes one argument.
Available examples:
    log
    tracing

Run an example

❯ cargo example https://github.com/clap-rs/clap-verbosity-flag --example tracing

    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
     Running `/tmp/cargo-example/862177302567451381/target/debug/examples/tracing`

2023-06-08T06:42:12.641689Z ERROR tracing: Engines exploded

Build with --release

❯ cargo example https://github.com/clap-rs/clap-verbosity-flag --example tracing -- --release

Multiple crates in one repo

❯ cargo example https://github.com/DioxusLabs/dioxus/ --path packages/dioxus-tui/Cargo.toml --example border

vs cargo-example ?

cargo-example is archived and does not work with multi-crate repos.

cargo example dioxus-tui

This will list all examples in the repo, which are not examples of dioxus-tui.

Commit count: 9

cargo fmt