use-robots 0.0.1

Robots and indexing directive primitives for RustUse
Documentation
  • Coverage
  • 100%
    33 out of 33 items documented1 out of 22 items with examples
  • Size
  • Source code size: 10.18 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 799.54 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-presence
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-robots

Robots and indexing directive primitives for RustUse.

Example

use use_robots::{FollowDirective, IndexDirective, RobotsDirective};

let directive = RobotsDirective::new(IndexDirective::NoIndex, FollowDirective::NoFollow);

assert_eq!(directive.to_meta_content(), "noindex,nofollow");

Scope

  • Robots directives, indexing/follow/snippet/archive labels, bot names, and common combinations.

Non-goals

  • robots.txt crawling, fetching, cache behavior, or bot-specific policy engines.

License

Licensed under either Apache-2.0 or MIT, at your option.