Skip to main content

Crate fuchsia_url

Crate fuchsia_url 

Source

Re-exports§

pub use crate::errors::ParseError;

Modules§

boot
builtin_url
errors
fuchsia_pkg
test

Structs§

FuchsiaPkgAbsoluteComponentUrl
A URL locating a Fuchsia component. Has the form “fuchsia-pkg:///[/variant][?hash=]#” where:
FuchsiaPkgComponentUrl
A URL locating a Fuchsia component. Can be either absolute or relative. See FuchsiaPkgAbsoluteComponentUrl and RelativeComponentUrl for more details. https://fuchsia.dev/fuchsia-src/concepts/packages/package_url
FuchsiaPkgPinnedAbsolutePackageUrl
A URL locating a Fuchsia package. Must have a hash. Has the form “fuchsia-pkg:///[/variant]?hash=” where:
FuchsiaPkgUnpinnedAbsolutePackageUrl
A URL locating a Fuchsia package. Cannot have a hash. Has the form “fuchsia-pkg:///[/variant]” where:
NoneHash
Type for URLs that do not have a hash (are unpinned).
NoneHost
Type for URLs that do not have a host.
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.
Path
One or more valid path segments separated by forward slashes.
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
Resource
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

Enums§

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

Constants§

HASH_SIZE
The size of a hash in bytes.
MAX_PACKAGE_PATH_SEGMENT_BYTES

Type Aliases§

AbsoluteComponentUrl
A URL locating a Fuchsia component. Has the form “://[host][/][?hash=]#” where:
AbsolutePackageUrl
A URL locating a Fuchsia package. Has the form “://[host][/][?hash=]” where:
ComponentUrl
A URL locating a Fuchsia component. Can be either absolute or relative. See AbsoluteComponentUrl and RelativeComponentUrl for more details.
Hash
A digest created by the Fuchsia Merkle Tree hashing algorithm. https://fuchsia.dev/fuchsia-src/concepts/packages/merkleroot
PackageUrl
A URL locating a Fuchsia package. Can be either absolute or relative. See AbsolutePackageUrl and RelativePackageUrl for more details.