mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-01-18 05:12:38 +01:00
99aa6e27f6
This uses the newly introduced conditional configuration checks that are now configurable withint Cargo (beta). This allows us to get rid of our custom python script that checks for expected features and cfgs. This does introduce a warning regarding the unknown lint in Cargo versions prior to the current beta, but since these are not rustc errors, they won't break any builds with the "-D warnings" RUSTFLAG. Moving to this lint actually exposed the "strict" feature not being present in the lightning-invoice crate, as our python script didnt correctly parse the cfg_attr where it appeared.
25 lines
719 B
TOML
25 lines
719 B
TOML
[package]
|
|
name = "possiblyrandom"
|
|
version = "0.2.0"
|
|
authors = ["Matt Corallo"]
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/lightningdevkit/rust-lightning/"
|
|
description = """
|
|
A crate that wraps getrandom and always compiles, returning 0s when no randomness is available.
|
|
"""
|
|
edition = "2021"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[dependencies]
|
|
getrandom = { version = "0.2", optional = true, default-features = false }
|
|
|
|
# Enable getrandom if we are on a platform that (likely) supports it
|
|
[target.'cfg(not(any(target_os = "unknown", target_os = "none")))'.dependencies]
|
|
getrandom = { version = "0.2", default-features = false }
|
|
|
|
[lints]
|
|
workspace = true
|