aocdata 0.1.0

gRPC server interface to database that serves AOC puzzle dataset requests.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::path::Path;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let proto_dir = &Path::new(std::env!("CARGO_MANIFEST_DIR")).join("proto");

    let mut config = prost_build::Config::new();
    config.protoc_arg("--experimental_allow_proto3_optional");

    tonic_build::configure().compile_with_config(
        config,
        &[proto_dir.join("aocdata.proto")],
        &[proto_dir],
    )?;

    Ok(())
}