Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 1006 Bytes

development.md

File metadata and controls

59 lines (44 loc) · 1006 Bytes

Development

Compile and checks

# compile
cargo build

# test
cargo test

# check for errors (faster than cargo-build)
cargo check

# check for common mistakes and areas for improvement
cargo clippy

For information regarding building manual production-ready binaries, see Build and deploy.

Exercise the CLI while developing

With Cargo

# generally
cargo run <flags-opts-args>

# for example
cargo run \
  create-ca-certificate \
    --self-signed \
    --days-valid 10950 \
    --common-name root

Manually

# generally
./target/<target>/release/tls-credential-helper <flags-opts-args>

# for example
./target/x86_64-apple-darwin/release/tls-credential-helper \
  create-ca-certificate \
    --self-signed \
    --days-valid 10950 \
    --common-name root

Watcher (run commands on save)

cargo watch \
  -x test \
  -x check \
  -x clippy \
  -x 'run create-ca-certificate --days-valid 1 --common-name cat'