# 🦀 apdu-rs
[](https://github.com/siketyan/apdu-rs/actions/workflows/rust.yml)
Rust library to compose or parse APDU commands and responses.
## 🏗 Crates
This repository is made of these crates separately:
### apdu
[](https://crates.io/crates/apdu)
[](https://docs.rs/apdu/)
### apdu-core
[](https://crates.io/crates/apdu-core)
[](https://docs.rs/apdu-core/)
### apdu-derive
[](https://crates.io/crates/apdu-derive)
[](https://docs.rs/apdu-derive/)
## 📦 Getting Started
Add to your Cargo.toml as a dependency as follows:
```toml
[dependencies]
apdu = "0.3"
```
## 🛠 Longer payloads support
This library supports longer payloads of APDU commands and responses.
If you want to use these, turn `longer_payloads` feature on:
```toml
apdu-core = { version = "0.3", features = ["longer_payloads"] }
```
## 🛠 no_std support
apdu-core crate does support no_std environments (but it requires `alloc` yet).
If you are using this crate in no_std, turn `std` feature off by disabling default features:
```toml
[dependencies]
apdu-core = { version = "0.3", default-features = false }
```
## 📄 Documentation
See [docs.rs](https://docs.rs/apdu/).