Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Build Service

There are two ways to build a service: using jade command line tool or using rust build script.

Using jade command line tool

cargo install jade
cd my-service
jade build

Using rust build script

# my-service/Cargo.toml
#
# ...
#
[build-dependencies]
cjam = "*"
// my-service/build.rs

fn main() {
    cjam::util::build(
        env!("CARGO_PKG_NAME"),
        // or Some(cjam::ModuleType::Authorizer)
        Some(cjam::ModuleType::Service),
    ).ok();
}