Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Some common validators to be used across projects

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages