[go: up one dir, main page]

cxx 0.1.2

Safe interop between Rust and C++
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::io;
use std::path::StripPrefixError;
use thiserror::Error;

pub(super) type Result<T, E = Error> = std::result::Result<T, E>;

#[derive(Error, Debug)]
#[error(transparent)]
pub(super) enum Error {
    #[error("missing OUT_DIR environment variable")]
    MissingOutDir,
    #[error("failed to locate target dir")]
    TargetDir,
    Io(#[from] io::Error),
    StripPrefix(#[from] StripPrefixError),
}