all: lint build html release
test: build
@clear
@echo Testing features: \(None\)
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo test --no-default-features
@echo Testing features: sm3,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo test --no-default-features --features sm3,stream_mode
@echo Testing features: sm3,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo test --no-default-features --features sm3,block_mode
@echo Testing features: insecure_md5,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo test --no-default-features --features insecure_md5,stream_mode
@echo Testing features: insecure_md5,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo test --no-default-features --features insecure_md5,block_mode
@echo Testing features: insecure_sha1,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo test --no-default-features --features insecure_sha1,stream_mode
@echo Testing features: insecure_sha1,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo test --no-default-features --features insecure_sha1,block_mode
@echo Testing features: sha2,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo test --no-default-features --features sha224,sha256,sha384,sha512,sha512_224,sha512_256,stream_mode
@echo Testing features: sha2,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo test --no-default-features --features sha224,sha256,sha384,sha512,sha512_224,sha512_256,block_mode
@echo Testing features: hmac,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo test --no-default-features --features sm3,insecure_md5,insecure_sha1,sha224,sha256,sha384,sha512,sha512_224,sha512_256,hmac,stream_mode
@echo Testing features: hmac,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo test --no-default-features --features sm3,insecure_md5,insecure_sha1,sha224,sha256,sha384,sha512,sha512_224,sha512_256,hmac,block_mode
@echo Testing features: sm4,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo test --no-default-features --features sm4,ecb,cbc,cfb,ofb,stream_mode
@echo Testing features: sm4,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo test --no-default-features --features sm4,ecb,cbc,cfb,ofb,block_mode
lint:
@clear
@echo Linting features: \(None\)
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features
@echo Linting features: sm3,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features sm3,stream_mode
@echo Linting features: sm3,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features sm3,block_mode
@echo Linting features: insecure_md5,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features insecure_md5,stream_mode
@echo Linting features: insecure_md5,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features insecure_md5,block_mode
@echo Linting features: insecure_sha1,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features insecure_sha1,stream_mode
@echo Linting features: insecure_sha1,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features insecure_sha1,block_mode
@echo Linting features: sha224,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features sha224,stream_mode
@echo Linting features: sha224,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features sha224,block_mode
@echo Linting features: sha256,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features sha256,stream_mode
@echo Linting features: sha256,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features sha256,block_mode
@echo Linting features: sha384,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features sha384,stream_mode
@echo Linting features: sha384,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features sha384,block_mode
@echo Linting features: sha512,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features sha512,stream_mode
@echo Linting features: sha512,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features sha512,block_mode
@echo Linting features: sha512_224,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features sha512_224,stream_mode
@echo Linting features: sha512_224,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features sha512_224,block_mode
@echo Linting features: sha512_256,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features sha512_256,stream_mode
@echo Linting features: sha512_256,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features sha512_256,block_mode
@echo Linting features: hmac_sm3,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features hmac,sm3,stream_mode
@echo Linting features: hmac_sm3,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features hmac,sm3,block_mode
@echo Linting features: hmac_insecure_md5,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features hmac,insecure_md5,stream_mode
@echo Linting features: hmac_insecure_md5,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features hmac,insecure_md5,block_mode
@echo Linting features: hmac_insecure_sha1,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features hmac,insecure_sha1,stream_mode
@echo Linting features: hmac_insecure_sha1,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features hmac,insecure_sha1,block_mode
@echo Linting features: hmac_sha224,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features hmac,sha224,stream_mode
@echo Linting features: hmac_sha224,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features hmac,sha224,block_mode
@echo Linting features: hmac_sha256,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features hmac,sha256,stream_mode
@echo Linting features: hmac_sha256,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features hmac,sha256,block_mode
@echo Linting features: hmac_sha384,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features hmac,sha384,stream_mode
@echo Linting features: hmac_sha384,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features hmac,sha384,block_mode
@echo Linting features: hmac_sha512,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features hmac,sha512,stream_mode
@echo Linting features: hmac_sha512,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features hmac,sha512,block_mode
@echo Linting features: hmac_sha512_224,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features hmac,sha512_224,stream_mode
@echo Linting features: hmac_sha512_224,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features hmac,sha512_224,block_mode
@echo Linting features: hmac_sha512_256,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features hmac,sha512_256,stream_mode
@echo Linting features: hmac_sha512_256,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features hmac,sha512_256,block_mode
@echo Linting features: sm4,stream
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features sm4,ecb,cbc,cfb,ofb,stream_mode
@echo Linting features: sm4,block
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clippy --no-default-features --features sm4,ecb,cbc,cfb,ofb,block_mode
build:
@clear
@rm -f pkg/*
@wasm-pack build --out-name neuedu-cryptos --target web --scope neuedu
release: build
@wasm-pack pack
publish:
@clear
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo publish --registry crates-io
html:
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo doc --no-deps --no-default-features --all-features
clean:
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo clean
update:
@CARGO_NET_GIT_FETCH_WITH_CLI=true cargo update