8 releases

0.0.8 Sep 26, 2024
0.0.7 Sep 26, 2024
0.0.4 Apr 7, 2024
0.0.3 Nov 5, 2023
0.0.2 Oct 31, 2023

#6 in #svn

40 downloads per month

Apache-2.0

275KB
7.5K SLoC

Subversion bindings for Rust

This rust crate provides idiomatic bindings for the Subversion C libraries.

At the moment, it only covers the "client" library but the aim is to support all of the public C API.

Example:

use subversion::client::CheckoutOptions;

let mut ctx = subversion::client::Context::new().unwrap();

ctx.checkout(
    "http://svn.apache.org/repos/asf/subversion/trunk/subversion/libsvn_client",
    std::path::Path::new("libsvn_client"),
    CheckoutOptions {
        peg_revision: Revision::Head,
        revision: Revision::Head,
        depth: Depth::Infinity,
        ..default::Default()
    }
)
.unwrap();

Dependencies

~0.5–4MB
~84K SLoC