Skip to content

Repository files navigation

Short Usage Preference Strings for Automated Processing

This is the working area for the individual Internet-Draft, "Short Usage Preference Strings for Automated Processing".

Rust Implementation

This includes a simple Rust implementation, which can be used as follows:

use sup_ai::{UsagePreferences, UsagePreference::Allowed};

// Construct usage preferences with the default usages.
let mut up = UsagePreferences::default();

// An expression is a string or bytes, as dictated by the source.
// This might be sourced from robots.txt, an HTTP header, metadata, or anywhere.
let expression = "tdm=y,ai=n";
up.parse(expression);

// Evaluation determines whether the preference is to allow or deny the usage.
let result = up.eval("search", Allowed);
assert_eq!(result, Allowed);

Contributing

See the guidelines for contributions.

Contributions can be made by creating pull requests. The GitHub interface supports creating pull requests using the Edit (✏) button.

Command Line Usage

Formatted text and HTML versions of the draft can be built using make.

$ make

Command line usage requires that you have the necessary software installed. See the instructions.

About

Short usage preference strings for AI

Resources

Contributing

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages