noosphere 0.16.1

A high-level package for dealing with accessing the Noosphere
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! This example is used to generate the FFI interface C header. You can run
//! it locally to generate a noosphere.h that represents the FFI interface
//! exposed by this crate at any given revision.
use anyhow::{anyhow, Result};

#[cfg(feature = "headers")]
fn main() -> Result<()> {
    noosphere::ffi::generate_headers().map_err(|e| anyhow!(e.to_string()))?;

    Ok(())
}

#[cfg(not(feature = "headers"))]
fn main() -> Result<()> {
    Err(anyhow!("Must run with \"headers\" feature."))
}