ostrya-remote
Ostrya [n. a botanical genus within the family Betulaceae, commonly known as ironwood tree] is a pure-Rust, async implementation of the ostree repository system, written from scratch.
The wire codec and the client sessions of the ostrya push and pull.
A caller pushes a local directory as a commit that the server makes with
push_tree, or its own objects with a PushSession. A PullSession reads the summary and the ref listings of a remote. The
crate has no repository knowledge, and it compiles on Linux, macOS, and Windows.
API documentation: https://docs.rs/ostrya-remote
Entry points
Endpoint::parsereads an address into anEndpoint.push_treepushes a local directory to an endpoint as one server commit.PushSession::connectopens a push session to an endpoint.PushSession::preparechecks an endpoint before the session opens.PushSession::over_streamopens a push session over a pair of byte streams.PullSession::connectopens the session of a pull to an endpoint.StreamSession::connectopens a stream session over ssh.StreamSession::check_command_linechecks the ssh command line of a pull before the session opens.Erroris the error of each fallible operation.
Modules
proto: the wire format and its codec.session: the push and pull sessions, their progress, and the one-way stream.transport: the endpoints, the addresses, and the ssh and HTTP transports.tree: the walk and the hash of a local directory.
Features
smol(default): thesmolbackend ofostrya-rtfor the ssh and HTTP transports.tokio: thetokiobackend ofostrya-rtfor the ssh and HTTP transports.
Examples
use ;
let endpoint = parse?;
let opts = TreePushOptions ;
let outcome = push_tree.await?;
println!;