docs.rs failed to build cue-rs-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
cue-rs-0.1.4
cue-rs
Rust bindings for the CUE language runtime, built as a wrapper around libcue — the official C interface to the CUE Go runtime.
[!WARNING] This library is experimental. The API is unstable and it is not recommended for production use.
libcue exposes the CUE evaluation engine (written in Go) as a C API via cgo. The build script compiles it into a static archive (libcue.a) which is then statically linked into the Rust crate, exposing a safe Rust API on top.
flowchart TD
subgraph libcue ["libcue (libcue.a)"]
Go["🐹 Go (CUE runtime)"]
C["⚙️ C interface (cgo)"]
Go --> C
end
libcue -->|"statically linked"| Rust["🦀 Rust"]
Requirements
- Go 1.24+ — the Go toolchain is required.
Usage
use ;
let ctx = new.unwrap;
let v = compile_string.unwrap;
v.is_valid.unwrap;
println!;
Examples
More examples can be found in the examples/ directory.