Skip to content

Commit 5b8e805

Browse files
committed
feat: initialize livekit-token crate
1 parent db3469b commit 5b8e805

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

livekit-token/Cargo.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "livekit-token"
3+
version = "0.0.1"
4+
license.workspace = true
5+
description = "Core logic for generating LiveKit tokens"
6+
edition.workspace = true
7+
repository.workspace = true
8+
readme = "README.md"
9+
10+
[dependencies]
11+
thiserror = { workspace = true }
12+
serde = { workspace = true, features = ["derive"] }
13+
14+
# access_token: HS256 only, via the in-crate HMAC CryptoProvider (jwt_provider.rs).
15+
# Dropping jsonwebtoken's rust_crypto bundle avoids linking RSA/EC/EdDSA.
16+
jsonwebtoken = { version = "10", default-features = false, optional = true }
17+
hmac = { version = "0.12", optional = true }
18+
signature = { version = "2", optional = true }

livekit-token/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# LiveKit Token
2+
3+
**Important**:
4+
This is an internal crate which contains logic to generate new LiveKit tokens.
5+
6+
To use this logic in an end application, consume it via its reexport in the `livekit-api` crate.

0 commit comments

Comments
 (0)