#relation #link #registered #linker #type #rfc8288 #web-linking

link_relation

Registered link relation types for Web Linking (RFC8288)

1 unstable release

0.1.0 Feb 18, 2025

#627 in Encoding

MIT license

91KB
389 lines

link_relation

Registered link relation types for Web Linking (RFC8288).

Definitions generated from IANA's link relations registry.

Usage

Add the following snippet to your Cargo.toml (with optional serde support):

link_relation = { version = "0.1", features = [ "serde" ] }
use link_relation::LinkRelation;
./data/update-link-relations.sh
cargo xtask generate

lib.rs:

Link Relations

Registered relation types for Web Linking (RFC8288).

Definitions generated from IANA's link relations registry.

Please check [LinkRelation] for all registered link relation types.

use link_relation::LinkRelation;
assert_eq!(LinkRelation::ACL.get_name(), "acl");

Crate Features

  • serde - Serialization and deserialization support with serde.

Dependencies

~150KB