mehari 0.18.1

Variant effect prediction all in Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// The custom build script, needed as we use prost.

fn main() {
    println!("cargo:rerun-if-changed=src/proto/data.proto3");
    prost_build::Config::new()
        .protoc_arg("-Isrc/proto")
        // Add serde serialization and deserialization to the generated code.
        .type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]")
        // Skip serializing `None` values.
        .type_attribute(".", "#[serde_with::skip_serializing_none]")
        // Define the protobuf files to compile.
        .compile_protos(&["src/proto/data.proto3"], &["src/"])
        .unwrap();
}