17 releases (1 stable)
1.0.0 | Dec 22, 2023 |
---|---|
1.0.0-alpha.4 | Nov 24, 2023 |
1.0.0-alpha.1 | Oct 29, 2023 |
0.18.0 | Dec 14, 2023 |
0.10.0 | Nov 22, 2021 |
#4 in #account-id
25,656 downloads per month
Used in 73 crates
(15 directly)
60KB
1K
SLoC
near-account-id
This crate provides a type for representing a syntactically valid, unique account identifier on the NEAR network, according to the NEAR Account ID rules.
Usage
use near_account_id::AccountId;
let alice: AccountId = "alice.near".parse()?;
assert!("ƒelicia.near".parse::<AccountId>().is_err()); // (ƒ is not f)
See the docs for more information.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Minimum Supported Rust Version (MSRV)
1.65
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~0–590KB
~12K SLoC