deepslate 0.1.0

A high-performance Minecraft server proxy written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Build script to compile proto/deepslate.proto via tonic,
//! and generate a file descriptor set for gRPC server reflection.

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let out_dir = std::path::PathBuf::from(std::env::var("OUT_DIR")?);

    tonic_prost_build::configure()
        .file_descriptor_set_path(out_dir.join("deepslate_descriptor.bin"))
        .compile_protos(&["proto/deepslate.proto"], &["proto"])?;

    Ok(())
}