Crate fuchsia_url

Source

Re-exports§

pub use crate::errors::ParseError;

Modules§

boot_url
builtin_url
errors
test

Structs§

AbsoluteComponentUrl
A URL locating a Fuchsia component. Has the form “fuchsia-pkg:///[/variant][?hash=]#” where:
ComponentUrl
A URL locating a Fuchsia component. Can be either absolute or relative. See AbsoluteComponentUrl and RelativeComponentUrl for more details. https://fuchsia.dev/fuchsia-src/concepts/packages/package_url
PackageName
A Fuchsia Package Name. Package names are the first segment of the path. https://fuchsia.dev/fuchsia-src/concepts/packages/package_url#package-name
PackageVariant
A Fuchsia Package Variant. Package variants are the optional second segment of the path.
PinnedAbsolutePackageUrl
A URL locating a Fuchsia package. Must have a hash. Has the form “fuchsia-pkg:///[/variant]?hash=” where:
RelativeComponentUrl
A relative URL locating a Fuchsia component. Used with a subpackage context. Has the form “#” where:
RelativePackageUrl
A relative URL locating a Fuchsia package. Used with a subpackage context. Has the form “” where:
RepositoryUrl
A URL locating a Fuchsia package repository. Has the form “fuchsia-pkg://”, where “repository” is a valid hostname. https://fuchsia.dev/fuchsia-src/concepts/packages/package_url?hl=en#repository
UnpinnedAbsolutePackageUrl
A URL locating a Fuchsia package. Cannot have a hash. Has the form “fuchsia-pkg:///[/variant]” where:

Enums§

AbsolutePackageUrl
A URL locating a Fuchsia package. Has the form “fuchsia-pkg:///[/variant][?hash=]” where:
PackageUrl
A URL locating a Fuchsia package. Can be either absolute or relative. See AbsolutePackageUrl and RelativePackageUrl for more details. https://fuchsia.dev/fuchsia-src/concepts/packages/package_url

Constants§

HASH_SIZE
The size of a hash in bytes.
MAX_PACKAGE_PATH_SEGMENT_BYTES

Functions§

validate_resource_path
Checks if input is a valid resource path for a Fuchsia Package URL. Fuchsia package resource paths are Fuchsia object relative paths without the limit on maximum path length. https://fuchsia.dev/fuchsia-src/concepts/packages/package_url#resource-path

Type Aliases§

Hash
A digest created by the Fuchsia Merkle Tree hashing algorithm. https://fuchsia.dev/fuchsia-src/concepts/packages/merkleroot