tree: de3c1e306a01cb7810c2dd31a2b6e80878324c6d [path history] [tgz]
  1. basic/
  2. complex/
  3. .bazelrc
  4. .gitignore
  5. BUILD.bazel
  6. extensions.bzl
  7. MODULE.bazel
  8. README.md
  9. WORKSPACE.bzlmod
examples/sys/README.md

Sys Crate Examples

This repository demonstrates how to use rules_rust to build projects that depend on -sys crates.

-sys crates provide low-level bindings to native libraries, allowing Rust code to interact with C libraries through the Foreign Function Interface (FFI). For more details, see the Rust FFI documentation or the Rust-bindgen project.

This workspace includes:

  1. Basic Example: Using bzip2-sys to interface with the bzip2 compression library.
  2. Complex Example: Using libgit2-sys to interact with the libgit2 library.