known-languages 0.0.2

Well-known languages.
Documentation
# Known Languages

[![License](https://img.shields.io/badge/license-Public%20Domain-blue.svg)](https://unlicense.org)
[![Compatibility](https://img.shields.io/badge/rust-1.85%2B-blue)](https://blog.rust-lang.org/2025/02/20/Rust-1.85.0/)
[![Package](https://img.shields.io/crates/v/known-languages)](https://crates.io/crates/known-languages)
[![Documentation](https://docs.rs/known-languages/badge.svg)](https://docs.rs/known-languages)

**Well-known languages for Rust.**

<sub>

[[Features](#-features)] |
[[Prerequisites](#%EF%B8%8F-prerequisites)] |
[[Installation](#%EF%B8%8F-installation)] |
[[Examples](#-examples)] |
[[Reference](#-reference)] |
[[Development](#%E2%80%8D-development)]

</sub>

## ✨ Features

- Provides an enum of all well-known human languages (ISO 639-1).
- 100% pure and safe Rust with zero dependencies and no bloat.
- Supports `no_std` environments from the get-go.
- Plays nice with others: interoperates with [Borsh], [BSON], and [Serde].
- 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.
- Polyglot software also available for Dart, Python, and Ruby.

## 🛠️ Prerequisites

- [Rust] 1.85+ (2024 edition)

## ⬇️ Installation

### Installation via Cargo

```bash
cargo add known-languages
```

### Installation in `Cargo.toml`

Enable all default features:

```toml
[dependencies]
known-languages = "0"
```

Enable only specific features:

```toml
[dependencies]
known-languages = { version = "0", default-features = false, features = ["serde"] }
```

## 👉 Examples

### Importing the Library

```rust
use known_languages::Language;
```

## 📚 Reference

[docs.rs/known-languages](https://docs.rs/known-languages)

### 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]https://github.com/it-is-known/known-countries | [![Package]https://img.shields.io/crates/v/known-countries]https://crates.io/crates/known-countries | [![Documentation]https://img.shields.io/docsrs/known-countries?label=docs.rs]https://docs.rs/known-countries
| [known-errors]https://github.com/it-is-known/known-errors | [![Package]https://img.shields.io/crates/v/known-errors]https://crates.io/crates/known-errors | [![Documentation]https://img.shields.io/docsrs/known-errors?label=docs.rs]https://docs.rs/known-errors
| [known-languages]https://github.com/it-is-known/known-languages | [![Package]https://img.shields.io/crates/v/known-languages]https://crates.io/crates/known-languages | [![Documentation]https://img.shields.io/docsrs/known-languages?label=docs.rs]https://docs.rs/known-languages
| [known-paths]https://github.com/it-is-known/known-paths | [![Package]https://img.shields.io/crates/v/known-paths]https://crates.io/crates/known-paths | [![Documentation]https://img.shields.io/docsrs/known-paths?label=docs.rs]https://docs.rs/known-paths
| [known-schemes]https://github.com/it-is-known/known-schemes | [![Package]https://img.shields.io/crates/v/known-schemes]https://crates.io/crates/known-schemes | [![Documentation]https://img.shields.io/docsrs/known-schemes?label=docs.rs]https://docs.rs/known-schemes
| [known-types]https://github.com/it-is-known/known-types | [![Package]https://img.shields.io/crates/v/known-types]https://crates.io/crates/known-types | [![Documentation]https://img.shields.io/docsrs/known-types?label=docs.rs]https://docs.rs/known-types

## 👨‍💻 Development

```bash
git clone https://github.com/it-is-known/known-languages.git
```

---

[![Share on X](https://img.shields.io/badge/share%20on-x-03A9F4?logo=x)](https://x.com/intent/post?url=https://github.com/it-is-known/known-languages&text=Known%20Languages)
[![Share on Reddit](https://img.shields.io/badge/share%20on-reddit-red?logo=reddit)](https://reddit.com/submit?url=https://github.com/it-is-known/known-languages&title=Known%20Languages)
[![Share on Hacker News](https://img.shields.io/badge/share%20on-hn-orange?logo=ycombinator)](https://news.ycombinator.com/submitlink?u=https://github.com/it-is-known/known-languages&t=Known%20Languages)
[![Share on Facebook](https://img.shields.io/badge/share%20on-fb-1976D2?logo=facebook)](https://www.facebook.com/sharer/sharer.php?u=https://github.com/it-is-known/known-languages)
[![Share on LinkedIn](https://img.shields.io/badge/share%20on-linkedin-3949AB?logo=linkedin)](https://www.linkedin.com/sharing/share-offsite/?url=https://github.com/it-is-known/known-languages)

[Borsh]: https://crates.io/crates/borsh
[BSON]: https://crates.io/crates/bson
[Clap]: https://crates.io/crates/clap
[Rust]: https://rust-lang.org
[Serde]: https://crates.io/crates/serde
[feature flags]: https://github.com/it-is-known/known-languages/blob/master/rust/Cargo.toml
[naming conventions]: https://rust-lang.github.io/api-guidelines/naming.html