Known Countries
Well-known countries for Rust.
[Features] | [Prerequisites] | [Installation] | [Examples] | [Reference] | [Development]
✨ Features
- Exports an enum for all well-known human countries.
- Plays nice with others: interoperates with Borsh, BSON, and Serde.
- 100% pure and safe Rust with zero dependencies and no bloat.
- Supports
no_stdenvironments from the get-go. - Supports opting out of any feature using comprehensive feature flags.
- Adheres to the Rust API Guidelines in its naming conventions.
- Cuts red tape: 100% free and unencumbered public domain software.
🛠️ Prerequisites
- Rust 1.85+ (2024 edition)
⬇️ Installation
Installation via Cargo
Installation in Cargo.toml
Enable all default features:
[]
= "0"
Enable only specific features:
[]
= { = "0", = false, = ["serde"] }
👉 Examples
Importing the Library
use Country;
📚 Reference
Feature Flags
Interoperability
| Feature | Version | Summary |
|---|---|---|
borsh |
1.6 | Derives borsh::{BorshSerialize, BorshDeserialize} |
bson |
3.1 | Implements From<T> for bson::Bson |
serde |
1.0 | Derives serde::{Serialize, Deserialize} |
See Also
| Package | Crate | Docs |
|---|---|---|
| known-countries | ||
| known-errors | ||
| known-languages | ||
| known-paths | ||
| known-schemes | ||
| known-types |
👨💻 Development