lenso-capability-http-endpoint 0.2.5

Portable HTTP Endpoint Capability contract for Lenso backend Modules.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::path::Path;

use lenso_contract_codegen::{ProjectionLanguage, check_projection};

fn main() {
    println!("cargo:rerun-if-changed=capability.json");
    println!("cargo:rerun-if-changed=schemas");
    println!("cargo:rerun-if-changed=src/generated.rs");
    check_projection(
        Path::new("capability.json"),
        ProjectionLanguage::Rust,
        Path::new("src/generated.rs"),
    )
    .unwrap_or_else(|error| panic!("HTTP Endpoint generated artifacts are stale: {error}"));
}