bigtable_rs 0.2.8

A very simple Google Bigtable client lib in Rust
Documentation
/// Reference:
/// https://github.com/fdeantoni/prost-wkt
/// https://github.com/hyperium/tonic/tree/master/tonic-build
/// https://github.com/tokio-rs/prost/issues/672
fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Uncomment the code below and cargo build again, when updating google protos

    // use prost_wkt_build::{FileDescriptorSet, Message};
    // use std::{env, path::PathBuf};
    // let out = PathBuf::from(env::var("OUT_DIR").unwrap());
    // let descriptor_file = out.join("descriptors.bin");
    //
    // tonic_build::configure()
    //     .build_server(false)
    //     .out_dir("src/google")
    //     .compile_well_known_types(true)
    //     .type_attribute(".", "#[serde_with::serde_as]")
    //     .type_attribute(".", "#[derive(serde::Serialize,serde::Deserialize)]")
    //     .type_attribute(".", "#[serde(rename_all = \"camelCase\")]")
    //     .type_attribute(
    //         ".google.cloud.conformance.bigtable.v2.ReadRowsTest",
    //         "#[serde(default)]",
    //     )
    //     .field_attribute(
    //         ".google.bigtable.v2.ReadRowsResponse.CellChunk.row_key",
    //         "#[serde_as(as = \"serde_with::base64::Base64\")]",
    //     )
    //     .field_attribute(
    //         ".google.bigtable.v2.ReadRowsResponse.CellChunk.row_key",
    //         "#[serde(default)]",
    //     )
    //     .field_attribute(
    //         ".google.bigtable.v2.ReadRowsResponse.CellChunk.qualifier",
    //         "#[serde_as(as = \"Option<serde_with::base64::Base64>\")]",
    //     )
    //     .field_attribute(
    //         ".google.bigtable.v2.ReadRowsResponse.CellChunk.qualifier",
    //         "#[serde(default)]",
    //     )
    //     .field_attribute(
    //         ".google.bigtable.v2.ReadRowsResponse.CellChunk.value",
    //         "#[serde_as(as = \"serde_with::base64::Base64\")]",
    //     )
    //     .field_attribute(
    //         ".google.bigtable.v2.ReadRowsResponse.CellChunk.timestamp_micros",
    //         "#[serde(default)]",
    //     )
    //     .field_attribute(
    //         ".google.bigtable.v2.ReadRowsResponse.CellChunk.labels",
    //         "#[serde(default)]",
    //     )
    //     .field_attribute(
    //         ".google.bigtable.v2.ReadRowsResponse.CellChunk.value",
    //         "#[serde(default)]",
    //     )
    //     .field_attribute(
    //         ".google.bigtable.v2.ReadRowsResponse.CellChunk.timestamp_micros",
    //         "#[serde_as(as = \"serde_with::DisplayFromStr\")]",
    //     )
    //     .field_attribute(
    //         ".google.bigtable.v2.ReadRowsResponse.CellChunk.value_size",
    //         "#[serde(default)]",
    //     )
    //     .field_attribute(
    //         ".google.cloud.conformance.bigtable.v2.ReadRowsTest.Result.timestamp_micros",
    //         "#[serde_as(as = \"serde_with::DisplayFromStr\")]",
    //     )
    //     .extern_path(
    //         ".google.protobuf.BytesValue",
    //         "::prost::alloc::vec::Vec<u8>",
    //     )
    //     .extern_path(
    //         ".google.protobuf.StringValue",
    //         "::prost::alloc::string::String",
    //     )
    //     .extern_path(".google.protobuf", "::prost_wkt_types")
    //     .file_descriptor_set_path(&descriptor_file)
    //     .compile(
    //         &[
    //             "../googleapis/google/bigtable/v2/bigtable.proto",
    //             "../googleapis/test/bigtable_test.proto", // only works with fork https://github.com/liufuyang/googleapis
    //         ],
    //         &["../googleapis"],
    //     )?;
    //
    // let descriptor_bytes = std::fs::read(descriptor_file).unwrap();
    // let descriptor = FileDescriptorSet::decode(&descriptor_bytes[..]).unwrap();
    // prost_wkt_build::add_serde(out, descriptor);

    Ok(())
}