near / cargo-near

Cargo extension for building Rust smart contracts on NEAR
Apache License 2.0
36 stars 17 forks source link

feat: reproducible choice interactive #256

Open dj8yfo opened 1 week ago

dj8yfo commented 1 week ago

this will look now like the following

❯ : cargo near build non-reproducible-wasm --help
Runs on current filesystem state without many restrictions

Usage: cargo-near near build non-reproducible-wasm [OPTIONS]

Options:
      --locked
      --no-release
      --no-abi
      --no-embed-abi
      --no-doc
      --no-wasmopt
      --out-dir <OUT_DIR>
      --manifest-path <MANIFEST_PATH>
      --features <FEATURES>
      --no-default-features
      --color <COLOR>                  [possible values: auto, always, never]
      --env <ENV>
  -h, --help                           Print help
  -V, --version                        Print version
❯ : cargo near build reproducible-wasm --help
Requires `docker` config added to Cargo.toml and runs on `git`-committed state, which is NOT dirty

Usage: cargo-near near build reproducible-wasm [OPTIONS]

Options:
      --no-locked
      --out-dir <OUT_DIR>
      --manifest-path <MANIFEST_PATH>
      --color <COLOR>                  [possible values: auto, always, never]
  -h, --help                           Print help
  -V, --version                        Print version
dj8yfo commented 1 week ago

this is pending

  1. deploy cmd dispatch in current pr (2x 5-liner change)
  2. prettier indents in interactive help msgs in current pr
  3. separate pr onto current pr as base branch with tests fixed as per api change
  4. separate pr onto current pr as base branch with .github/workflows change /testing
  5. separate pr onto current pr as base branch with docs/README update
  6. testing of this pr on a few common cases (sample-crate, factory-rust, neardevhub-contract)
  7. merge
  8. release, and sourcescan/cargo-near compatibility note with versions of [cargo_near_build::extended::build] factory functionality as per breaking change of how default command in container looks