https://github.com/siketyan/apdu-rs
🦀 Rust library to compose or parse APDU commands and responses.
https://github.com/siketyan/apdu-rs
apdu derive nfc pcsc rust-library
Last synced: about 1 year ago
JSON representation
🦀 Rust library to compose or parse APDU commands and responses.
- Host: GitHub
- URL: https://github.com/siketyan/apdu-rs
- Owner: siketyan
- Created: 2022-06-29T10:53:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-05T12:39:54.000Z (over 3 years ago)
- Last Synced: 2025-05-07T20:46:26.444Z (about 1 year ago)
- Topics: apdu, derive, nfc, pcsc, rust-library
- Language: Rust
- Homepage:
- Size: 64.5 KB
- Stars: 11
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🦀 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/).