1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Build script.
//!
//! When the C sparsemap source is available next to this crate (i.e.
//! when building inside the upstream repository), compile it and set the
//! `c_ffi` cfg so the wire-compatibility tests can round-trip buffers
//! through both implementations. When the source is absent — notably in
//! a packaged crate published to crates.io — this is a no-op and the
//! crate builds as pure safe Rust.
use Path;