Crate sbvc_lib[][src]

Expand description

Single Binary file Version Control system

This crate is backend for SBVC that provides useful and simple API to use in the frontend.

Get Started

For this crate to work you have to choose one (and only one) of the following features:

  • runtime-actix-native-tls
  • runtime-async-std-native-tls
  • runtime-tokio-native-tls
  • runtime-actix-rustls
  • runtime-async-std-rusttls
  • runtime-tokio-rustls

By default, runtime-async-std-rustls is chosen. If you want to use other runtime, disable default features of the crate.

Example

[dependencies]
sbvc_lib = {
    version = "0.1",
    default-features = false,
    features = "runtime-tokio-native-tls",
}

To get starting using the API, refer to documentations of following structs:

Structs

A struct that represents the database file where the version tree is contained.

A struct that represents a single commit in the version tree. It uses Arc under the hood, so it is okay to clone it, as it has very little cost.