#domain #validate #validation #email #crypto #credit-card

validaten

适用于加密货币、信用卡、域名、URL等的通用验证器,可在多个项目中使用

1个不稳定版本

0.1.0 2021年3月28日

#101#validate

自定义许可证

51KB
902

验证器

Build Status

适用于加密货币、信用卡、域名、URL等的通用验证器,可在多个项目中使用。

要求

  • Rust

用法

  • 使用所有验证
[dependencies]
validaten = { version = "0.1.0", features = ["validaten-all"] }
  • 使用加密验证
[dependencies]
validaten = { version = "0.1.0", features = ["crypto"] }

测试

cargo test --features="validaten-all"

示例

$ 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")

许可证:MIT

依赖关系

~0–0.8MB
~19K SLoC