Skip to content

Instantly share code, notes, and snippets.

View mhuang74's full-sized avatar

Michael S. Huang mhuang74

  • Marin Software
  • Taiwan
View GitHub Profile
@BartMassey
BartMassey / crate-release-checklist.md
Created November 17, 2021 19:14
Rust Crate Release Checklist

Crate Release Checklist

First published release

  • Add Rustdoc root to the crate root

      #![doc(html_root_url = "https://docs.rs/<crate>/<version>")]
    

    (where <crate> is the crate name and <version> is the version name)

@aquarhead
aquarhead / build.rs
Last active August 15, 2023 12:35
Fully Automated Rust Code Generation for Large Protobuf/gRPC Repos
use std::{collections::HashSet, env, fmt::Write, fs, path::Path};
use walkdir::WalkDir;
type Res = Result<(), Box<dyn std::error::Error>>;
// replace:
// "ROOT DIR": root dir of proto files to generate
// "INCLUDE DIR": where all "package" specifier based on
// "REPO DIR": where to monitor change for build.rs rerun