caprand 0.3.0

RP2040 secure random number generator by timing capacitor pullup
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "caprand"
version = "0.3.0"
authors = ["Matt Johnston <matt@ucc.asn.au>"]
build = "build.rs"
exclude = ["docs/*"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "RP2040 secure random number generator by timing capacitor pullup"
readme = "README.md"
keywords = [
    "rp2040",
    "rng",
    "getrandom",
]
categories = [
    "embedded",
    "cryptography",
]
license = "0BSD"
repository = "https://github.com/mkj/caprand"

[package.metadata.docs.rs]
features = [
    "getrandom/custom",
    "embassy-rp/rp2040",
]

[features]
defmt = ["dep:defmt"]

[lib]
name = "caprand"
path = "src/lib.rs"

[[example]]
name = "rand"
path = "examples/rand.rs"

[[example]]
name = "sernoise"
path = "examples/sernoise.rs"

[[example]]
name = "usbnoise"
path = "examples/usbnoise.rs"

[dependencies.cortex-m]
version = "0.7"

[dependencies.critical-section]
version = "1.2"

[dependencies.defmt]
version = "1.1"
optional = true

[dependencies.embassy-rp]
version = "0.10"
features = [
    "rp2040",
    "unstable-pac",
]
default-features = false

[dependencies.log]
version = "0.4"
default-features = false

[dependencies.rand]
version = "0.10"
default-features = false

[dependencies.rand_chacha]
version = "0.10"
default-features = false

[dependencies.sha2]
version = "0.10"
default-features = false

[dev-dependencies.cortex-m]
version = "0.7"
features = ["critical-section-single-core"]

[dev-dependencies.cortex-m-rt]
version = "0.7"

[dev-dependencies.defmt]
version = "1.1"

[dev-dependencies.defmt-rtt]
version = "1.2"

[dev-dependencies.embassy-executor]
version = "0.10"
features = [
    "executor-thread",
    "platform-cortex-m",
]

[dev-dependencies.embassy-futures]
version = "0.1"

[dev-dependencies.embassy-rp]
version = "0.10"
features = [
    "time-driver",
    "rp2040",
]

[dev-dependencies.embassy-time]
version = "0.5"

[dev-dependencies.embassy-usb]
version = "0.6.0"
features = ["defmt"]

[dev-dependencies.embassy-usb-driver]
version = "0.2"

[dev-dependencies.embedded-io-async]
version = "0.7"

[dev-dependencies.getrandom]
version = "0.4"

[dev-dependencies.heapless]
version = "0.9"

[dev-dependencies.panic-probe]
version = "1.0"
features = ["print-defmt"]

[profile.release]
debug = 2