Use new trait bounds for KeyId to only allow specific types. Change the KeyId validation to be generic over the key name type. Remove the KeyName type and replace it with the more specific ServerSigningKeyVersion.
31 lines
730 B
TOML
31 lines
730 B
TOML
[package]
|
|
name = "ruma-identifiers-validation"
|
|
description = "Validation logic for ruma-common and ruma-macros"
|
|
homepage = "https://ruma.dev/"
|
|
repository = "https://github.com/ruma/ruma"
|
|
license = "MIT"
|
|
version = "0.9.5"
|
|
edition = "2021"
|
|
rust-version = { workspace = true }
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
|
|
[features]
|
|
# Allow IDs to exceed 255 bytes.
|
|
compat-arbitrary-length-ids = []
|
|
|
|
# Don't validate the version in `server_signing_key_version::validate`.
|
|
compat-server-signing-key-version = []
|
|
|
|
# Allow some user IDs that are invalid even with the specified historical
|
|
# user ID scheme.
|
|
compat-user-id = []
|
|
|
|
[dependencies]
|
|
js_int = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
|
|
[lints]
|
|
workspace = true
|