1 unstable release
0.1.0 | Mar 28, 2021 |
---|
#97 in #validate
51KB
902 lines
Validators
Common validators for cryptocurrency, creditcards, domain, url, etc that can be used across projects.
Requirements
- Rust
Usage
- with all validations
[dependencies]
validaten = { version = "0.1.0", features = ["validaten-all"] }
- with crypto validations
[dependencies]
validaten = { version = "0.1.0", features = ["crypto"] }
Tests
cargo test --features="validaten-all"
Examples
$ cargo run --example crypto --features="crypto"
warning: unused manifest key: package.author
Compiling validators v0.1.0 (validaten-rs)
Finished dev [optimized + debuginfo] target(s) in 1.88s
Running `target/debug/examples/crypto`
1GiWxH6PzSSmbdcK72XfGpqhjSb6nae6h9 => Some("Bitcoin")
qppjlghjlwg6tgxv7ffhvs43rlul0kpp4c0shk4dr6 => Some("Bitcoin Cash")
0xaae47eae4ddd4877e0ae0bc780cfaee3cc3b52cb => Some("Ethereum")
LQ4i7FLNhfCC9GXw682mS1NzvVKbtJAFZq => Some("Litecoin")
D6K2nqqQKycTucCSFSHhpiig4yQ6NPQRf9 => Some("Dodgecoin")
XqLYPDTADW6EYuQmTcEAx81o8EHTKwqTK8 => Some("Dash")
41gYNjXMeXaTmZFVv645A1HRVoA637cXFGbDdLV8Gn5hLvfxfRLKigUTvm2HVZhBzDVPeGpDy71qxASTpRFgepDwLexA8Ti => Some("Monero")
AeHauBkGkHPTxh4PEUhNr7WRgivmcdCRnR => Some("Neo")
rUocf1ixKzTuEe34kmVhRvGqNCofY1NJzV => Some("Ripple")
License: MIT
Dependencies
~0–680KB
~15K SLoC