Skip to content

Rust bindings for libdivecomputer

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

theCarlG/libdivecomputer-rs

Repository files navigation

🧭 libdivecomputer-rs

Rust bindings for libdivecomputer, a cross-platform and open source library for communication with dive computers from various manufacturers.

Crates.io Docs dependency status Build status

This repository contains 2 crates:

Name Description Links
libdivecomputer High-level interface on top of libdivecomputer-sys 🚧 Crates.io Docs
libdivecomputer-sys Unsafe bindings for libdivecomputer Crates.io Docs

Caveats

  • The high-level libdivecomputer wrapper is work-in-progress, and only covers a part of libdivecomputer functionality.

  • Any other features have to be accessed through the unsafe libdivecomputer-sys crate.

Usage

The following code example shows how libdivecomputer can be initialized.

use libdivecomputer::Descriptor;

let descriptor = Descriptor::default();

for dive_computer in descriptor {
    println!("{dive_computer:?}");
}

Information about all wrapper functionality can be found in the libdivecomputer crate docs.

Prerequisites

  • autoreconf
  • gcc

How to build

git submodule update --init
cargo build --release

License

Licensed under either of

at your option.

Note that libdivecomputer has its own LGPL-2.1 license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Rust bindings for libdivecomputer

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published