[package] name = "lpc55" version = "0.2.1" authors = ["Nicolas Stalder "] edition = "2021" description = "Host-side tooling to interact with LPC55 chips via the ROM bootloader" repository = "https://github.com/lpc55/lpc55-host" homepage = "https://github.com/lpc55/lpc55-host" readme = "README.md" license = "Apache-2.0 OR MIT" documentation = "https://docs.rs/lpc55" keywords = ["cortex-m", "nxp", "lpc"] categories = ["command-line-utilities", "config", "development-tools", "embedded", "hardware-support"] exclude = ["pkg"] [[bin]] name = "lpc55" required-features = ["cli"] [dependencies] aes = "0.8" anyhow = "1" atty = "0.2.14" base64 = "0.21" bitflags = "1.2.1" chrono = "0.4.19" clap = { version = "4", features = ["cargo", "derive"], optional = true } clap-verbosity-flag = { version = "2", optional = true } ctr = "0.9" delog = "0.1.0-alpha.2" enum-iterator = "1" hex = "0.4.2" hmac = "0.12" hidapi = { version = "2", default-features = false, features = ["linux-static-hidraw"] } nom = { version = "7" } serde = { version = "1", features = ["derive"] } serde-big-array = "0.4.0" serde_json = "1" serde_yaml = "0.9" signature = "1" log = "0.4.11" lazy_static = "1.4.0" oid-registry = "0.6" pem = "1.1" rand = "0.8.1" rsa = "0.6" sha2 = { version = "0.10", features = ["oid"] } thiserror = "1" tiny_http = { version = "0.12", optional = true } toml = "0.5.7" x509-parser = { version = "0.14", features = ["verify"] } uriparse = "0.6.3" uuid = "1" pkcs11 = "0.5.0" pkcs11-uri = "0.1.2" # progressbar indicatif = { version = "0.17", optional = true } [dev-dependencies] insta = "1.1.0" tempfile = "3.2.0" assert_cmd = "2" predicates = "2" [build-dependencies] clap = { version = "4", features = ["cargo", "derive"] } clap_complete = "4" clap-verbosity-flag = "2" lazy_static = "1.4.0" [features] default = ["cli"] cli = ["clap", "clap-verbosity-flag", "http", "indicatif"] http = ["tiny_http"] # Enable tests that require a mcuboot device attached with-device = [] [patch.crates-io] # uriparse = { path = "../uriparse-rs" } # pkcs11-uri = { path = "../pkcs11-uri" } # pkcs11-uri = { git = "https://github.com/nickray/pkcs11-uri", branch = "main" } # 20201-01-25: brings `lpc55` size on Linux from 9.3M down to 5.4M, 3.2M after stripping # [profile.release] # opt-level = 'z' # lto = true # codegen-units = 1 [package.metadata.deb] assets = [ # Binary ["target/release/lpc55", "usr/bin/", "755"], # Completions ["target/release/_lpc55", "usr/share/zsh/vendor-completions/", "644"], ["target/release/lpc55.bash", "usr/share/bash-completion/completions/lpc55", "644"], # udev rule ["pkg/debian/70-raw-lpc55-mcuboot.rules", "usr/lib/udev/rules.d/", "644"], ] extended-description = "Host-side tooling to interact with LPC55 chips via the ROM bootloader"