Skip to main content

Crate cyclonedds_src

Crate cyclonedds_src 

Source
Expand description

Source distribution of Eclipse CycloneDDS C library.

This crate bundles the CycloneDDS C source code so that downstream cyclonedds-rust-sys can build it from source when no system library is available.

§Usage

Typically used as a build-dependency in cyclonedds-rust-sys:

[build-dependencies]
cyclonedds-src = "0.1"

Then in build.rs:

let src = cyclonedds_src::source_dir();
// build with cmake

Functions§

build_include_dir
Return the directory where the generated config header is expected.
include_dir
Return the directory where the C headers are located.
source_dir
Return the directory containing the CycloneDDS C source tree.