validaten

Crates.iovalidaten
lib.rsvalidaten
version0.1.0
sourcesrc
created_at2021-03-28 03:43:34.157964
updated_at2021-03-28 03:43:34.157964
descriptionCommon validators for cryptocurrency, creditcards, domain, url, etc that can be used across projects
homepagehttps://github.com/marirs/validaten-rs
repositoryhttps://github.com/marirs/validaten-rs
max_upload_size
id374524
size58,156
SG (marirs)

documentation

README

Validators

Build Status

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

Commit count: 18

cargo fmt