[−][src]Crate tough
Tough is a client library for TUF repositories.
This client adheres to TUF version 1.0.0, with the following exceptions:
- Delegated roles (and TAP 3) are not yet supported.
- TAP 4 (multiple repository consensus) is not yet supported.
Testing
Unit tests are run in the usual manner: cargo test
.
Integration tests require docker and are disabled by default behind a feature named integ
.
To run all tests, including integration tests: cargo test --all-features
or
cargo test --features 'http,integ'
.
Modules
editor | Provides a |
error | Contains the error type for this library. |
key_source | Provides an abstraction over the source of a signing key. This allows signing keys to be obtained, for example, from local files or from cloud provider key stores. |
schema | Provides the schema objects as defined by the TUF spec. |
sign | Provides the |
Structs
DefaultTransport | A Transport that provides support for both local files and, if the |
FilesystemTransport | Provides a |
Limits | Limits used when fetching repository metadata. |
Repository | A TUF repository. |
RepositoryLoader | A builder for settings with which to load a |
TransportError | The error type that |
Enums
ExpirationEnforcement | Represents whether a Repository should fail to load when metadata is expired ( |
TransportErrorKind | The kind of error that the transport object experienced during |
Traits
Transport | A trait to abstract over the method/protocol by which files are obtained. |