Skip to main content

parse_turtle_acl

Function parse_turtle_acl 

Source
pub fn parse_turtle_acl(input: &str) -> Result<AclDocument, PodError>
Expand description

Parse a Turtle ACL document into the same AclDocument shape that the JSON-LD deserialiser produces.

Enforces a byte cap (JSS_MAX_ACL_BYTES, default 1 MiB) so an attacker cannot feed a multi-gigabyte document and DoS the process. To supply an explicit limit, use parse_turtle_acl_with_limit.