--- /dev/null
+startup --windows_enable_symlinks
+build --enable_runfiles
\ No newline at end of file
bazel-*
-.bazelrc
.vscode
ratelimiter/target
target/
\ No newline at end of file
],
)
+
# Used to generate the protobuf files for go
http_archive(
name = "com_google_protobuf",
),
"libsodium-sys": crate.override(
extra_build_script_env_vars = {
- "PATH": "/usr/sbin:/usr/bin:/sbin:/bin",
- "NUM_JOBS": "2",
- },
+ "NUM_JOBS": "2"
+ }
),
},
resolver_download_url_template = DEFAULT_URL_TEMPLATE,
srcs = ["build.rs"],
build_script_env = {
"PROTOC": "$(location @com_google_protobuf//:protoc)",
+ "PROTO": "$(location //ratelimiter/proto:nova.ratelimit.v1.proto)"
},
data = [
"//ratelimiter/proto:nova.ratelimit.v1.proto",
+use std::{env, fs};
+
fn main() -> Result<(), Box<dyn std::error::Error>> {
- tonic_build::compile_protos("proto/nova.ratelimit.v1.proto").unwrap();
+ let paths = fs::read_dir("./").unwrap();
+ let path = env::var("PROTO").unwrap();
+
+ for path in paths {
+ println!("Name: {}", path.unwrap().path().display())
+ }
+ tonic_build::compile_protos(path).unwrap();
Ok(())
}
\ No newline at end of file
-Subproject commit fe1d6d11aabcbd191abd3b8df99abf18a726c036
+Subproject commit a016aea61214668827e18c6278ac25b0bbc98ca5