hdfs-types 0.1.0

hdfs types used by hdfs-client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[allow(unused_mut)]
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mut compiler = tonic_build::configure();
    #[cfg(feature = "serde")]
    {
        compiler =
            compiler.message_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]");
    }
    #[cfg(feature = "valuable")]
    {
        compiler = compiler.message_attribute(".", "#[derive(valuable::Valuable)]");
    }
    compiler.compile(&["./proto/ClientNamenodeProtocol.proto"], &["./proto"])?;
    Ok(())
}