diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index a901bfe3e..9cc350135 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -546,10 +546,10 @@ tasks: shell_commands: - set -x - export CC=clang - - make rust_rust_proto_compile_example - - make rust_rust_grpc_compile_example - - make rust_rust_proto_library_example - - make rust_rust_grpc_library_example + - make rust_rust_prost_proto_compile_example + - make rust_rust_tonic_grpc_compile_example + - make rust_rust_prost_proto_library_example + - make rust_rust_tonic_grpc_library_example scala_ubuntu2004_examples: name: scala examples diff --git a/.bazelrc b/.bazelrc new file mode 100644 index 000000000..dcaa60cfb --- /dev/null +++ b/.bazelrc @@ -0,0 +1,4 @@ +build --compilation_mode=opt +build --strip=never + +build --experimental_proto_descriptor_sets_include_source_info \ No newline at end of file diff --git a/.bazelversion b/.bazelversion new file mode 100644 index 000000000..f4965a313 --- /dev/null +++ b/.bazelversion @@ -0,0 +1 @@ +6.0.0 \ No newline at end of file diff --git a/Makefile b/Makefile index 09dee2aac..6d4858ea3 100644 --- a/Makefile +++ b/Makefile @@ -18,13 +18,10 @@ buildifier: bazel run //tools:buildifier -# Run cargo raze on the rust dependencies -.PHONY: rust_raze -rust_raze: - cd rust/raze; \ - rm Cargo.raze.lock || true; \ - rm -r remote; \ - cargo raze; +# Run crate_universe to update the rust dependencies +.PHONY: rust_crates_vendor +rust_crates_vendor: + bazel run //rust:crates_vendor -- --repin # Run yarn to upgrade the js dependencies @@ -66,7 +63,7 @@ fsharp_regenerate_packages: # Run all language specific updates .PHONY: all_updates -all_updates: rust_raze yarn_upgrade ruby_bundle_upgrade pip_compile csharp_regenerate_packages fsharp_regenerate_packages +all_updates: rust_crates_vendor yarn_upgrade ruby_bundle_upgrade pip_compile csharp_regenerate_packages fsharp_regenerate_packages # Pull in auto-generated examples makefile diff --git a/README.md b/README.md index 4097c87d1..7a0e254cb 100644 --- a/README.md +++ b/README.md @@ -98,10 +98,10 @@ Full documentation for the current and previous versions [can be found here](htt | [Ruby](https://rules-proto-grpc.com/en/latest/lang/ruby.html) | [ruby_grpc_compile](https://rules-proto-grpc.com/en/latest/lang/ruby.html#ruby-grpc-compile) | Generates Ruby protobuf and gRPC ``.rb`` files ([example](/example/ruby/ruby_grpc_compile)) | | [Ruby](https://rules-proto-grpc.com/en/latest/lang/ruby.html) | [ruby_proto_library](https://rules-proto-grpc.com/en/latest/lang/ruby.html#ruby-proto-library) | Generates a Ruby protobuf library using ``ruby_library`` from ``rules_ruby`` ([example](/example/ruby/ruby_proto_library)) | | [Ruby](https://rules-proto-grpc.com/en/latest/lang/ruby.html) | [ruby_grpc_library](https://rules-proto-grpc.com/en/latest/lang/ruby.html#ruby-grpc-library) | Generates a Ruby protobuf and gRPC library using ``ruby_library`` from ``rules_ruby`` ([example](/example/ruby/ruby_grpc_library)) | -| [Rust](https://rules-proto-grpc.com/en/latest/lang/rust.html) | [rust_proto_compile](https://rules-proto-grpc.com/en/latest/lang/rust.html#rust-proto-compile) | Generates Rust protobuf ``.rs`` files ([example](/example/rust/rust_proto_compile)) | -| [Rust](https://rules-proto-grpc.com/en/latest/lang/rust.html) | [rust_grpc_compile](https://rules-proto-grpc.com/en/latest/lang/rust.html#rust-grpc-compile) | Generates Rust protobuf and gRPC ``.rs`` files ([example](/example/rust/rust_grpc_compile)) | -| [Rust](https://rules-proto-grpc.com/en/latest/lang/rust.html) | [rust_proto_library](https://rules-proto-grpc.com/en/latest/lang/rust.html#rust-proto-library) | Generates a Rust protobuf library using ``rust_library`` from ``rules_rust`` ([example](/example/rust/rust_proto_library)) | -| [Rust](https://rules-proto-grpc.com/en/latest/lang/rust.html) | [rust_grpc_library](https://rules-proto-grpc.com/en/latest/lang/rust.html#rust-grpc-library) | Generates a Rust protobuf and gRPC library using ``rust_library`` from ``rules_rust`` ([example](/example/rust/rust_grpc_library)) | +| [Rust](https://rules-proto-grpc.com/en/latest/lang/rust.html) | [rust_prost_proto_compile](https://rules-proto-grpc.com/en/latest/lang/rust.html#rust-prost-proto-compile) | Generates Rust protobuf ``.rs`` files using prost ([example](/example/rust/rust_prost_proto_compile)) | +| [Rust](https://rules-proto-grpc.com/en/latest/lang/rust.html) | [rust_tonic_grpc_compile](https://rules-proto-grpc.com/en/latest/lang/rust.html#rust-tonic-grpc-compile) | Generates Rust protobuf and gRPC ``.rs`` files using prost and tonic ([example](/example/rust/rust_tonic_grpc_compile)) | +| [Rust](https://rules-proto-grpc.com/en/latest/lang/rust.html) | [rust_prost_proto_library](https://rules-proto-grpc.com/en/latest/lang/rust.html#rust-prost-proto-library) | Generates a Rust prost protobuf library using ``rust_library`` from ``rules_rust`` ([example](/example/rust/rust_prost_proto_library)) | +| [Rust](https://rules-proto-grpc.com/en/latest/lang/rust.html) | [rust_tonic_grpc_library](https://rules-proto-grpc.com/en/latest/lang/rust.html#rust-tonic-grpc-library) | Generates a Rust prost protobuf and tonic gRPC library using ``rust_library`` from ``rules_rust`` ([example](/example/rust/rust_tonic_grpc_library)) | | [Scala](https://rules-proto-grpc.com/en/latest/lang/scala.html) | [scala_proto_compile](https://rules-proto-grpc.com/en/latest/lang/scala.html#scala-proto-compile) | Generates a Scala protobuf ``.jar`` file ([example](/example/scala/scala_proto_compile)) | | [Scala](https://rules-proto-grpc.com/en/latest/lang/scala.html) | [scala_grpc_compile](https://rules-proto-grpc.com/en/latest/lang/scala.html#scala-grpc-compile) | Generates Scala protobuf and gRPC ``.jar`` file ([example](/example/scala/scala_grpc_compile)) | | [Scala](https://rules-proto-grpc.com/en/latest/lang/scala.html) | [scala_proto_library](https://rules-proto-grpc.com/en/latest/lang/scala.html#scala-proto-library) | Generates a Scala protobuf library using ``scala_library`` from ``rules_scala`` ([example](/example/scala/scala_proto_library)) | diff --git a/WORKSPACE b/WORKSPACE index 9779a8a97..188811286 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -277,6 +277,14 @@ rules_rust_dependencies() rust_register_toolchains(edition = "2021") +load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies") + +crate_universe_dependencies(bootstrap = True) + +load("//rust/crates:crates.bzl", "crate_repositories") + +crate_repositories() + # # Scala # diff --git a/docs/lang/rust.rst b/docs/lang/rust.rst index ed5dd0be2..d2b13c288 100644 --- a/docs/lang/rust.rst +++ b/docs/lang/rust.rst @@ -6,7 +6,7 @@ Rust ==== -Rules for generating Rust protobuf and gRPC ``.rs`` files and libraries using `rust-protobuf `_ and `grpc `_. Libraries are created with ``rust_library`` from `rules_rust `_. +Rules for generating Rust protobuf and gRPC ``.rs`` files and libraries using `prost `_ and `tonic `_. Libraries are created with ``rust_library`` from `rules_rust `_. Requires ``--experimental_proto_descriptor_sets_include_source_info`` to be set for the build. .. list-table:: Rules :widths: 1 2 @@ -14,26 +14,26 @@ Rules for generating Rust protobuf and gRPC ``.rs`` files and libraries using `r * - Rule - Description - * - `rust_proto_compile`_ - - Generates Rust protobuf ``.rs`` files - * - `rust_grpc_compile`_ - - Generates Rust protobuf and gRPC ``.rs`` files - * - `rust_proto_library`_ - - Generates a Rust protobuf library using ``rust_library`` from ``rules_rust`` - * - `rust_grpc_library`_ - - Generates a Rust protobuf and gRPC library using ``rust_library`` from ``rules_rust`` + * - `rust_prost_proto_compile`_ + - Generates Rust protobuf ``.rs`` files using prost + * - `rust_tonic_grpc_compile`_ + - Generates Rust protobuf and gRPC ``.rs`` files using prost and tonic + * - `rust_prost_proto_library`_ + - Generates a Rust prost protobuf library using ``rust_library`` from ``rules_rust`` + * - `rust_tonic_grpc_library`_ + - Generates a Rust prost protobuf and tonic gRPC library using ``rust_library`` from ``rules_rust`` -.. _rust_proto_compile: +.. _rust_prost_proto_compile: -rust_proto_compile ------------------- +rust_prost_proto_compile +------------------------ -Generates Rust protobuf ``.rs`` files +Generates Rust protobuf ``.rs`` files using prost Example ******* -Full example project can be found `here `__ +Full example project can be found `here `__ ``WORKSPACE`` ^^^^^^^^^^^^^ @@ -59,19 +59,19 @@ Full example project can be found `here `__ +- `@rules_proto_grpc//rust:rust_prost_plugin `__ +- `@rules_proto_grpc//rust:rust_crate_plugin `__ -.. _rust_grpc_compile: +.. _rust_tonic_grpc_compile: -rust_grpc_compile ------------------ +rust_tonic_grpc_compile +----------------------- -Generates Rust protobuf and gRPC ``.rs`` files +Generates Rust protobuf and gRPC ``.rs`` files using prost and tonic Example ******* -Full example project can be found `here `__ +Full example project can be found `here `__ ``WORKSPACE`` ^^^^^^^^^^^^^ @@ -165,14 +166,14 @@ Full example project can be found `here `__ -- `@rules_proto_grpc//rust:grpc_rust_plugin `__ +- `@rules_proto_grpc//rust:rust_prost_plugin `__ +- `@rules_proto_grpc//rust:rust_tonic_plugin `__ +- `@rules_proto_grpc//rust:rust_crate_plugin `__ -.. _rust_proto_library: +.. _rust_prost_proto_library: -rust_proto_library ------------------- +rust_prost_proto_library +------------------------ -Generates a Rust protobuf library using ``rust_library`` from ``rules_rust`` +Generates a Rust prost protobuf library using ``rust_library`` from ``rules_rust`` Example ******* -Full example project can be found `here `__ +Full example project can be found `here `__ ``WORKSPACE`` ^^^^^^^^^^^^^ @@ -267,10 +269,10 @@ Full example project can be found `here `__ +Full example project can be found `here `__ ``WORKSPACE`` ^^^^^^^^^^^^^ @@ -367,10 +379,10 @@ Full example project can be found `here ) -> Result<(), Box> { + let rectangle = Rectangle { + lo: Some(Point { + latitude: 400_000_000, + longitude: -750_000_000, + }), + hi: Some(Point { + latitude: 420_000_000, + longitude: -730_000_000, + }), + }; + + let mut stream = client + .list_features(Request::new(rectangle)) + .await? + .into_inner(); -// print_features lists all the features within the given bounding Rectangle. -async fn print_features(client: &RouteGuideClient, rect: Rectangle) { - println!("Looking for features within {:?}", rect); - let resp = client.list_features(grpc::RequestOptions::new(), rect); - // Stream of features without response metadata - let mut stream = resp.drop_metadata(); - while let Some(feature) = stream.next().await { - let feature = feature.expect("feature"); - println!("{:?}", feature); + while let Some(feature) = stream.message().await? { + println!("NOTE = {:?}", feature); } -} -fn random_point() -> Point { - let mut rng = thread_rng(); - let mut point = Point::new(); - point.latitude = rng.gen_range(-90, 90) * 10_000_000; - point.longitude = rng.gen_range(-180, 180) * 10_000_000; - point + Ok(()) } -// run_record_route sends a sequence of points to server and expects to get a RouteSummary from server. -async fn run_record_route(client: &RouteGuideClient) { - // Create a random number of random points - let mut rng = thread_rng(); - let point_count = rng.gen_range(2, 102); // Traverse at least two points +async fn run_record_route(client: &mut RouteGuideClient) -> Result<(), Box> { + let mut rng = rand::thread_rng(); + let point_count: i32 = rng.gen_range(2..100); - println!("Traversing {} points.", point_count); + let mut points = vec![]; + for _ in 0..=point_count { + points.push(random_point(&mut rng)) + } - let (mut req, resp) = client - .record_route(grpc::RequestOptions::new()) - .await - .expect("request"); + println!("Traversing {} points", points.len()); + let request = Request::new(stream::iter(points)); - for _ in 0..point_count { - let point = random_point(); - // Waiting for buffer space to send data. - req.wait().await.expect("block_wait"); - req.send_data(point).expect("send_data"); + match client.record_route(request).await { + Ok(response) => println!("SUMMARY: {:?}", response.into_inner()), + Err(e) => println!("something went wrong: {:?}", e), } - req.finish().unwrap(); - - let reply = resp.drop_metadata().await.expect("resp"); - println!("Route summary: {:?}", reply); + Ok(()) } -// run_route_chat receives a sequence of route notes, while sending notes for various locations. -async fn run_route_chat(client: &RouteGuideClient) { - fn new_note(latitude: i32, longitude: i32, message: &str) -> RouteNote { - RouteNote { - location: SingularPtrField::some(Point { - latitude, - longitude, - ..Default::default() - }), - message: message.to_owned(), - ..Default::default() +async fn run_route_chat(client: &mut RouteGuideClient) -> Result<(), Box> { + let start = time::Instant::now(); + + let outbound = async_stream::stream! { + let mut interval = time::interval(Duration::from_secs(1)); + + loop { + let time = interval.tick().await; + let elapsed = time.duration_since(start); + let note = RouteNote { + location: Some(Point { + latitude: 409146138 + elapsed.as_secs() as i32, + longitude: -746188906, + }), + message: format!("at {:?}", elapsed), + }; + + yield note; } - } - let notes = vec![ - new_note(0, 1, "First message"), - new_note(0, 2, "Second message"), - new_note(0, 3, "Third message"), - new_note(0, 1, "Fourth message"), - new_note(0, 2, "Fifth message"), - new_note(0, 3, "Sixth message"), - ]; - - let (mut req, resp) = client - .route_chat(grpc::RequestOptions::new()) - .await - .unwrap(); - - let sender_thread = thread::spawn(move || { - executor::block_on(async { - for note in notes { - req.wait().await.unwrap(); - req.send_data(note).expect("send"); - } - req.finish().expect("finish"); - }); - }); - - let mut responses = resp.drop_metadata(); - while let Some(message) = responses.next().await { - let message = message.expect("message"); - let location = message - .location - .as_ref() - .unwrap_or(Point::default_instance()); - println!( - "Got message {} at point({}, {})", - message.message, location.latitude, location.longitude - ); + }; + + let response = client.route_chat(Request::new(outbound)).await?; + let mut inbound = response.into_inner(); + + while let Some(note) = inbound.message().await? { + println!("NOTE = {:?}", note); } - sender_thread.join().expect("sender_thread"); + Ok(()) } -pub async fn run_client(client: &RouteGuideClient) { - // Looking for a valid feature - let mut point = Point::new(); - point.latitude = 409146138; - point.longitude = -746188906; - print_feature(&client, point).await; - - // Feature missing. - print_feature(&client, Point::new()).await; - - // Looking for features between 40, -75 and 42, -73. - let mut rect = Rectangle::new(); - rect.hi = SingularPtrField::some({ - let mut point = Point::new(); - point.latitude = 400000000; - point.longitude = -750000000; - point - }) - .into(); - rect.lo = SingularPtrField::some({ - let mut point = Point::new(); - point.latitude = 420000000; - point.longitude = -730000000; - point - }) - .into(); - - print_features(&client, rect).await; - - // RecordRoute - run_record_route(&client).await; - - // RouteChat - run_route_chat(&client).await; -} +#[tokio::main(flavor = "current_thread")] +async fn main() -> Result<(), Box> { + let mut client = RouteGuideClient::connect("http://[::1]:10000").await?; -fn main() { - let port = match std::env::var("SERVER_PORT") { - Ok(val) => val.parse::().unwrap(), - Err(_e) => 50051, - }; + println!("*** SIMPLE RPC ***"); + let response = client + .get_feature(Request::new(Point { + latitude: 409_146_138, + longitude: -746_188_906, + })) + .await?; + println!("RESPONSE = {:?}", response); + + println!("\n*** SERVER STREAMING ***"); + print_features(&mut client).await?; + + println!("\n*** CLIENT STREAMING ***"); + run_record_route(&mut client).await?; - let client = - RouteGuideClient::new_plain("127.0.0.1", port, ClientConf::new()).expect("client"); + println!("\n*** BIDIRECTIONAL STREAMING ***"); + run_route_chat(&mut client).await?; - executor::block_on(async { run_client(&client).await }); + Ok(()) } + +fn random_point(rng: &mut ThreadRng) -> Point { + let latitude = (rng.gen_range(0..180) - 90) * 10_000_000; + let longitude = (rng.gen_range(0..360) - 180) * 10_000_000; + Point { + latitude, + longitude, + } +} \ No newline at end of file diff --git a/rust/example/routeguide/data.rs b/rust/example/routeguide/data.rs new file mode 100644 index 000000000..530ddfd0a --- /dev/null +++ b/rust/example/routeguide/data.rs @@ -0,0 +1,37 @@ +// https://github.com/hyperium/tonic/blob/4e5c6c8f2354301aed984da891ef284d16c936e5/examples/src/routeguide/data.rs + +use proto::routeguide; +use serde::Deserialize; +use std::fs::File; + +#[derive(Debug, Deserialize)] +struct Feature { + location: Location, + name: String, +} + +#[derive(Debug, Deserialize)] +struct Location { + latitude: i32, + longitude: i32, +} + +#[allow(dead_code)] +pub fn load() -> Vec { + let file = + File::open("example/proto/routeguide_features.json").expect("failed to open data file"); + + let decoded: Vec = + serde_json::from_reader(&file).expect("failed to deserialize features"); + + decoded + .into_iter() + .map(|feature| routeguide::Feature { + name: feature.name, + location: Some(routeguide::Point { + longitude: feature.location.longitude, + latitude: feature.location.latitude, + }), + }) + .collect() +} diff --git a/rust/example/routeguide/server.rs b/rust/example/routeguide/server.rs index b27faedec..54b632319 100644 --- a/rust/example/routeguide/server.rs +++ b/rust/example/routeguide/server.rs @@ -1,293 +1,190 @@ -// Derived from https://github.com/stepancheg/grpc-rust/blob/master/grpc-examples/route_guide -use ::routeguide::Feature; -use ::routeguide::Point; -use ::routeguide::Rectangle; -use ::routeguide::RouteNote; -use ::routeguide::RouteSummary; -use ::routeguide::routeguide_grpc::RouteGuide; -use ::routeguide::routeguide_grpc::RouteGuideServer; - -use futures::stream::StreamExt; - -use grpc::Metadata; -use grpc::ServerHandlerContext; -use grpc::ServerRequest; -use grpc::ServerRequestSingle; -use grpc::ServerResponseSink; -use grpc::ServerResponseUnarySink; -use json::JsonValue; +// https://github.com/hyperium/tonic/blob/23c1392fb7e0ac50bcdedc35509917061bc858e1/examples/src/routeguide/server.rs + use std::collections::HashMap; -use std::f64; -use std::fs; -use std::io::Read; -use std::path::Path; +use std::pin::Pin; use std::sync::Arc; -use std::sync::Mutex; -use std::thread; use std::time::Instant; -// https://github.com/grpc/grpc-go/blob/master/examples/route_guide/server/server.go -#[derive(Default)] -pub struct RouteGuideImpl { - saved_features: Arc>, - route_notes: Arc>>>, -} +use futures::{Stream, StreamExt}; +use tokio::sync::mpsc; +use tokio_stream::wrappers::ReceiverStream; +use tonic::transport::Server; +use tonic::{Request, Response, Status}; -impl RouteGuideImpl { - pub fn new_and_load_db() -> RouteGuideImpl { - RouteGuideImpl { - saved_features: Arc::new(load_features(Path::new("example/proto/routeguide_features.json"))), - route_notes: Default::default(), - } - } +use proto::routeguide::route_guide_server::{RouteGuide, RouteGuideServer}; +use proto::routeguide::{Feature, Point, Rectangle, RouteNote, RouteSummary}; + +mod data; + +#[derive(Debug)] +pub struct RouteGuideService { + features: Arc>, } -impl RouteGuide for RouteGuideImpl { - fn get_feature( - &self, - _o: ServerHandlerContext, - req: ServerRequestSingle, - resp: ServerResponseUnarySink, - ) -> grpc::Result<()> { - for feature in &*self.saved_features { - if feature.get_location() == &req.message { - return resp.finish(feature.clone()); +#[tonic::async_trait] +impl RouteGuide for RouteGuideService { + async fn get_feature(&self, request: Request) -> Result, Status> { + println!("GetFeature = {:?}", request); + + for feature in &self.features[..] { + if feature.location.as_ref() == Some(request.get_ref()) { + return Ok(Response::new(feature.clone())); } } - resp.finish(Feature { - location: Some(req.message).into(), - ..Default::default() - }) + Ok(Response::new(Feature::default())) } - fn list_features( + type ListFeaturesStream = ReceiverStream>; + + async fn list_features( &self, - o: ServerHandlerContext, - mut req: ServerRequestSingle, - mut resp: ServerResponseSink, - ) -> grpc::Result<()> { - let req = req.take_message(); - let saved_features = self.saved_features.clone(); - o.spawn(async move { - for feature in &saved_features[..] { - if in_range(feature.get_location(), &req) { - resp.ready().await?; - resp.send_data(feature.clone())?; + request: Request, + ) -> Result, Status> { + println!("ListFeatures = {:?}", request); + + let (tx, rx) = mpsc::channel(4); + let features = self.features.clone(); + + tokio::spawn(async move { + for feature in &features[..] { + if in_range(feature.location.as_ref().unwrap(), request.get_ref()) { + println!(" => send {:?}", feature); + tx.send(Ok(feature.clone())).await.unwrap(); } } - resp.send_trailers(Metadata::new()) + + println!(" /// done sending"); }); - Ok(()) + + Ok(Response::new(ReceiverStream::new(rx))) } - fn record_route( + async fn record_route( &self, - o: ServerHandlerContext, - req: ServerRequest, - resp: ServerResponseUnarySink, - ) -> grpc::Result<()> { - let start_time = Instant::now(); - - let saved_features = self.saved_features.clone(); - - let mut stream = req.into_stream(); - - o.spawn(async move { - struct State { - point_count: u32, - feature_count: u32, - distance: u32, - last_point: Option, - } + request: Request>, + ) -> Result, Status> { + println!("RecordRoute"); - let mut state = State { - point_count: 0, - feature_count: 0, - distance: 0, - last_point: None, - }; - - while let Some(point) = stream.next().await { - let point = point?; - state.point_count += 1; - for feature in &saved_features[..] { - if feature.get_location() == &point { - state.feature_count += 1; - } - } - if let Some(last_point) = &state.last_point { - state.distance += calc_distance(last_point, &point); + let mut stream = request.into_inner(); + + let mut summary = RouteSummary::default(); + let mut last_point = None; + let now = Instant::now(); + + while let Some(point) = stream.next().await { + let point = point?; + + println!(" ==> Point = {:?}", point); + + // Increment the point count + summary.point_count += 1; + + // Find features + for feature in &self.features[..] { + if feature.location.as_ref() == Some(&point) { + summary.feature_count += 1; } - state.last_point = Some(point); } - resp.finish(RouteSummary { - point_count: state.point_count as i32, - feature_count: state.feature_count as i32, - distance: state.distance as i32, - elapsed_time: start_time.elapsed().as_secs() as i32, - ..Default::default() - }) - }); + // Calculate the distance + if let Some(ref last_point) = last_point { + summary.distance += calc_distance(last_point, &point); + } - Ok(()) - } + last_point = Some(point); + } - fn route_chat( - &self, - o: ServerHandlerContext, - req: ServerRequest, - mut resp: ServerResponseSink, - ) -> grpc::Result<()> { - let route_notes_map = self.route_notes.clone(); + summary.elapsed_time = now.elapsed().as_secs() as i32; + + Ok(Response::new(summary)) + } - let mut req = req.into_stream(); + type RouteChatStream = Pin> + Send + 'static>>; - o.spawn(async move { - loop { - // Wait until resp is writable - resp.ready().await?; + async fn route_chat( + &self, + request: Request>, + ) -> Result, Status> { + println!("RouteChat"); - match req.next().await { - Some(note) => { - let note = note?; + let mut notes = HashMap::new(); + let mut stream = request.into_inner(); - let key = serialize(note.get_location()); + let output = async_stream::try_stream! { + while let Some(note) = stream.next().await { + let note = note?; - let mut route_notes_map = route_notes_map.lock().unwrap(); + let location = note.location.clone().unwrap(); - let route_notes = route_notes_map.entry(key).or_insert(Vec::new()); - route_notes.push(note); + let location_notes = notes.entry(location).or_insert(vec![]); + location_notes.push(note); - for note in route_notes { - resp.send_data(note.clone())?; - } - } - None => { - return resp.send_trailers(Metadata::new()); - } + for note in location_notes { + yield note.clone(); } } - }); + }; - Ok(()) + Ok(Response::new(Box::pin(output) as Self::RouteChatStream)) } } -fn in_range(point: &Point, rect: &Rectangle) -> bool { - let left = f64::min( - rect.get_lo().longitude as f64, - rect.get_hi().longitude as f64, - ); - let right = f64::max( - rect.get_lo().longitude as f64, - rect.get_hi().longitude as f64, - ); - let top = f64::max(rect.get_lo().latitude as f64, rect.get_hi().latitude as f64); - let bottom = f64::min(rect.get_lo().latitude as f64, rect.get_hi().latitude as f64); - - point.longitude as f64 >= left - && point.longitude as f64 <= right - && point.latitude as f64 >= bottom - && point.latitude as f64 <= top -} +#[tokio::main(flavor = "current_thread")] +async fn main() -> Result<(), Box> { + let addr = "[::1]:10000".parse().unwrap(); -fn to_radians(num: f64) -> f64 { - num * f64::consts::PI / 180. -} + println!("RouteGuideServer listening on: {}", addr); -fn calc_distance(p1: &Point, p2: &Point) -> u32 { - let cord_factor: f64 = 1e7; - let r = 6371000.; // earth radius in metres - let lat1 = to_radians(p1.latitude as f64 / cord_factor); - let lat2 = to_radians(p2.latitude as f64 / cord_factor); - let lng1 = to_radians(p1.longitude as f64 / cord_factor); - let lng2 = to_radians(p2.longitude as f64 / cord_factor); - let dlat = lat2 - lat1; - let dlng = lng2 - lng1; - - let a = f64::sin(dlat / 2.) * f64::sin(dlat / 2.) - + f64::cos(lat1) * f64::cos(lat2) * f64::sin(dlng / 2.) * f64::sin(dlng / 2.); - let c = 2. * f64::atan2(f64::sqrt(a), f64::sqrt(1. - a)); - - let distance = r * c; - distance as u32 -} + let route_guide = RouteGuideService { + features: Arc::new(data::load()), + }; -fn serialize(point: &Point) -> String { - format!("{} {}", point.latitude, point.longitude) + let svc = RouteGuideServer::new(route_guide); + + Server::builder().add_service(svc).serve(addr).await?; + + Ok(()) } -fn load_features(path: &Path) -> Vec { - let mut file = fs::File::open(path).expect("open"); - let mut s = String::new(); - file.read_to_string(&mut s).expect("read"); +fn in_range(point: &Point, rect: &Rectangle) -> bool { + use std::cmp; - // TODO: use protobuf mapper when new version is released + let lo = rect.lo.as_ref().unwrap(); + let hi = rect.hi.as_ref().unwrap(); - let json_value = json::parse(&s).expect("parse json"); - let array = match json_value { - JsonValue::Array(array) => array, - _ => panic!(), - }; + let left = cmp::min(lo.longitude, hi.longitude); + let right = cmp::max(lo.longitude, hi.longitude); + let top = cmp::max(lo.latitude, hi.latitude); + let bottom = cmp::min(lo.latitude, hi.latitude); - array - .into_iter() - .map(|item| { - let object = match item { - JsonValue::Object(object) => object, - _ => panic!(), - }; - - let location = match object.get("location").expect("location") { - JsonValue::Object(object) => object, - _ => panic!(), - }; - - Feature { - name: object - .get("name") - .expect("name") - .as_str() - .expect("unwrap") - .to_owned(), - location: Some(Point { - latitude: location - .get("latitude") - .expect("latitude") - .as_i32() - .unwrap(), - longitude: location - .get("longitude") - .expect("longitude") - .as_i32() - .unwrap(), - ..Default::default() - }) - .into(), - ..Default::default() - } - }) - .collect() + point.longitude >= left + && point.longitude <= right + && point.latitude >= bottom + && point.latitude <= top } -fn main() { - let service_def = RouteGuideServer::new_service_def(RouteGuideImpl::new_and_load_db()); +/// Calculates the distance between two points using the "haversine" formula. +/// This code was taken from http://www.movable-type.co.uk/scripts/latlong.html. +fn calc_distance(p1: &Point, p2: &Point) -> i32 { + const CORD_FACTOR: f64 = 1e7; + const R: f64 = 6_371_000.0; // meters - let port = match std::env::var("SERVER_PORT") { - Ok(val) => val.parse::().unwrap(), - Err(_e) => 50051, - }; + let lat1 = p1.latitude as f64 / CORD_FACTOR; + let lat2 = p2.latitude as f64 / CORD_FACTOR; + let lng1 = p1.longitude as f64 / CORD_FACTOR; + let lng2 = p2.longitude as f64 / CORD_FACTOR; - let mut server_builder = grpc::ServerBuilder::new_plain(); - server_builder.add_service(service_def); - server_builder.http.set_port(port); - let server = server_builder.build().expect("build"); + let lat_rad1 = lat1.to_radians(); + let lat_rad2 = lat2.to_radians(); - println!("server started on addr {}", server.local_addr()); + let delta_lat = (lat2 - lat1).to_radians(); + let delta_lng = (lng2 - lng1).to_radians(); - loop { - thread::park(); - } -} + let a = (delta_lat / 2f64).sin() * (delta_lat / 2f64).sin() + + (lat_rad1).cos() * (lat_rad2).cos() * (delta_lng / 2f64).sin() * (delta_lng / 2f64).sin(); + + let c = 2f64 * a.sqrt().atan2((1f64 - a).sqrt()); + + (R * c) as i32 +} \ No newline at end of file diff --git a/rust/raze/BUILD.bazel b/rust/raze/BUILD.bazel deleted file mode 100644 index 84b239eb6..000000000 --- a/rust/raze/BUILD.bazel +++ /dev/null @@ -1,111 +0,0 @@ -""" -@generated -cargo-raze generated Bazel file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -package(default_visibility = ["//visibility:public"]) - -licenses([ - "notice", # See individual crates for specific licenses -]) - -# Aliased targets -alias( - name = "futures", - actual = "@raze__futures__0_3_17//:futures", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "grpc", - actual = "@raze__grpc__0_8_3//:grpc", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "cargo_bin_protoc_gen_rust_grpc", - actual = "@raze__grpc_compiler__0_8_3//:cargo_bin_protoc_gen_rust_grpc", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "grpc_compiler", - actual = "@raze__grpc_compiler__0_8_3//:grpc_compiler", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "grpc_protobuf", - actual = "@raze__grpc_protobuf__0_8_3//:grpc_protobuf", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "json", - actual = "@raze__json__0_12_4//:json", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "protobuf", - actual = "@raze__protobuf__2_18_2//:protobuf", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "cargo_bin_protoc_gen_rust", - actual = "@raze__protobuf_codegen__2_18_2//:cargo_bin_protoc_gen_rust", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "protobuf_codegen", - actual = "@raze__protobuf_codegen__2_18_2//:protobuf_codegen", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "rand", - actual = "@raze__rand__0_6_5//:rand", - tags = [ - "cargo-raze", - "manual", - ], -) - -# Export file for Stardoc support -exports_files( - [ - "crates.bzl", - ], - visibility = ["//visibility:public"], -) diff --git a/rust/raze/Cargo.raze.lock b/rust/raze/Cargo.raze.lock deleted file mode 100644 index 5b8bf7c23..000000000 --- a/rust/raze/Cargo.raze.lock +++ /dev/null @@ -1,670 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -[[package]] -name = "autocfg" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dde43e75fd43e8a1bf86103336bc699aa8d17ad1be60c76c0bdfd4828e19b78" -dependencies = [ - "autocfg 1.1.0", -] - -[[package]] -name = "autocfg" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" - -[[package]] -name = "base64" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643" -dependencies = [ - "byteorder", - "safemem", -] - -[[package]] -name = "bitflags" -version = "1.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" - -[[package]] -name = "byteorder" -version = "1.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" - -[[package]] -name = "bytes" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e4cec68f03f32e44924783795810fa50a7035d8c8ebe78580ad7e6c703fba38" - -[[package]] -name = "cfg-if" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" - -[[package]] -name = "cfg-if" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" - -[[package]] -name = "cloudabi" -version = "0.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" -dependencies = [ - "bitflags", -] - -[[package]] -name = "compile_with_bazel" -version = "0.0.0" -dependencies = [ - "futures", - "grpc", - "grpc-compiler", - "grpc-protobuf", - "json", - "protobuf", - "protobuf-codegen", - "rand 0.6.5", -] - -[[package]] -name = "fuchsia-cprng" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba" - -[[package]] -name = "fuchsia-zircon" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" -dependencies = [ - "bitflags", - "fuchsia-zircon-sys", -] - -[[package]] -name = "fuchsia-zircon-sys" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" - -[[package]] -name = "futures" -version = "0.3.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a12aa0eb539080d55c3f2d45a67c3b58b6b0773c1a3ca2dfec66d58c97fd66ca" -dependencies = [ - "futures-channel", - "futures-core", - "futures-executor", - "futures-io", - "futures-sink", - "futures-task", - "futures-util", -] - -[[package]] -name = "futures-channel" -version = "0.3.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3083ce4b914124575708913bca19bfe887522d6e2e6d0952943f5eac4a74010" -dependencies = [ - "futures-core", - "futures-sink", -] - -[[package]] -name = "futures-core" -version = "0.3.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c09fd04b7e4073ac7156a9539b57a484a8ea920f79c7c675d05d289ab6110d3" - -[[package]] -name = "futures-executor" -version = "0.3.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9420b90cfa29e327d0429f19be13e7ddb68fa1cccb09d65e5706b8c7a749b8a6" -dependencies = [ - "futures-core", - "futures-task", - "futures-util", -] - -[[package]] -name = "futures-io" -version = "0.3.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc4045962a5a5e935ee2fdedaa4e08284547402885ab326734432bed5d12966b" - -[[package]] -name = "futures-macro" -version = "0.3.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33c1e13800337f4d4d7a316bf45a567dbcb6ffe087f16424852d97e97a91f512" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "futures-sink" -version = "0.3.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21163e139fa306126e6eedaf49ecdb4588f939600f0b1e770f4205ee4b7fa868" - -[[package]] -name = "futures-task" -version = "0.3.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57c66a976bf5909d801bbef33416c41372779507e7a6b3a5e25e4749c58f776a" - -[[package]] -name = "futures-util" -version = "0.3.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8b7abd5d659d9b90c8cba917f6ec750a74e2dc23902ef9cd4cc8c8b22e6036a" -dependencies = [ - "futures-channel", - "futures-core", - "futures-io", - "futures-macro", - "futures-sink", - "futures-task", - "memchr", - "pin-project-lite 0.2.9", - "pin-utils", - "slab", -] - -[[package]] -name = "grpc" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efbd563cd51f8b9d3578a8029989b090aca83b8b411bfe1c7577b8b0f92937f8" -dependencies = [ - "base64", - "bytes", - "futures", - "httpbis", - "log", - "log-ndc", - "tls-api", - "tls-api-stub", - "tokio", -] - -[[package]] -name = "grpc-compiler" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45f971449e16e799ebbf106d2414c115ff46f2849689c61da3a3271be0884a34" -dependencies = [ - "protobuf", - "protobuf-codegen", -] - -[[package]] -name = "grpc-protobuf" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b39e472b8a5bd8344d55473eabda070bc28126cec26ca6a008fa1bbc3d0c4a2" -dependencies = [ - "bytes", - "grpc", - "protobuf", -] - -[[package]] -name = "httpbis" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d3e4404f8f87938a2db89336609bde64363f5a556b15af936343e7252c9648d" -dependencies = [ - "bytes", - "futures", - "log", - "log-ndc", - "net2", - "rand 0.5.6", - "tls-api", - "tls-api-stub", - "tokio", - "unix_socket", - "void", -] - -[[package]] -name = "iovec" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e" -dependencies = [ - "libc", -] - -[[package]] -name = "json" -version = "0.12.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "078e285eafdfb6c4b434e0d31e8cfcb5115b651496faca5749b88fafd4f23bfd" - -[[package]] -name = "kernel32-sys" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" -dependencies = [ - "winapi 0.2.8", - "winapi-build", -] - -[[package]] -name = "lazy_static" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" - -[[package]] -name = "libc" -version = "0.2.124" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21a41fed9d98f27ab1c6d161da622a4fa35e8a54a8adc24bbf3ddd0ef70b0e50" - -[[package]] -name = "log" -version = "0.4.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6389c490849ff5bc16be905ae24bc913a9c8892e19b2341dbc175e14c341c2b8" -dependencies = [ - "cfg-if 1.0.0", -] - -[[package]] -name = "log-ndc" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edb09057c7b58b7d27498b528eaee9a1e661b2974a733fcabbbc3350360bc8bd" -dependencies = [ - "log", -] - -[[package]] -name = "memchr" -version = "2.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" - -[[package]] -name = "mio" -version = "0.6.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4afd66f5b91bf2a3bc13fad0e21caedac168ca4c707504e75585648ae80e4cc4" -dependencies = [ - "cfg-if 0.1.10", - "fuchsia-zircon", - "fuchsia-zircon-sys", - "iovec", - "kernel32-sys", - "libc", - "log", - "miow", - "net2", - "slab", - "winapi 0.2.8", -] - -[[package]] -name = "mio-uds" -version = "0.6.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afcb699eb26d4332647cc848492bbc15eafb26f08d0304550d5aa1f612e066f0" -dependencies = [ - "iovec", - "libc", - "mio", -] - -[[package]] -name = "miow" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944d" -dependencies = [ - "kernel32-sys", - "net2", - "winapi 0.2.8", - "ws2_32-sys", -] - -[[package]] -name = "net2" -version = "0.2.37" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "391630d12b68002ae1e25e8f974306474966550ad82dac6886fb8910c19568ae" -dependencies = [ - "cfg-if 0.1.10", - "libc", - "winapi 0.3.9", -] - -[[package]] -name = "pin-project-lite" -version = "0.1.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777" - -[[package]] -name = "pin-project-lite" -version = "0.2.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" - -[[package]] -name = "pin-utils" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" - -[[package]] -name = "proc-macro2" -version = "1.0.37" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec757218438d5fda206afc041538b2f6d889286160d649a86a24d37e1235afd1" -dependencies = [ - "unicode-xid", -] - -[[package]] -name = "protobuf" -version = "2.18.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe8e18df92889779cfe50ccf640173141ff73c5b2817e553d6d35230f798a036" -dependencies = [ - "bytes", -] - -[[package]] -name = "protobuf-codegen" -version = "2.18.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f49782fe28b5ff7d5d51cbfbe8985f3ff863acea663c515ed369c53f72e1d628" -dependencies = [ - "protobuf", -] - -[[package]] -name = "quote" -version = "1.0.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1feb54ed693b93a84e14094943b84b7c4eae204c512b7ccb95ab0c66d278ad1" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "rand" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c618c47cd3ebd209790115ab837de41425723956ad3ce2e6a7f09890947cacb9" -dependencies = [ - "cloudabi", - "fuchsia-cprng", - "libc", - "rand_core 0.3.1", - "winapi 0.3.9", -] - -[[package]] -name = "rand" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d71dacdc3c88c1fde3885a3be3fbab9f35724e6ce99467f7d9c5026132184ca" -dependencies = [ - "autocfg 0.1.8", - "libc", - "rand_chacha", - "rand_core 0.4.2", - "rand_hc", - "rand_isaac", - "rand_jitter", - "rand_os", - "rand_pcg", - "rand_xorshift", - "winapi 0.3.9", -] - -[[package]] -name = "rand_chacha" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "556d3a1ca6600bfcbab7c7c91ccb085ac7fbbcd70e008a98742e7847f4f7bcef" -dependencies = [ - "autocfg 0.1.8", - "rand_core 0.3.1", -] - -[[package]] -name = "rand_core" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b" -dependencies = [ - "rand_core 0.4.2", -] - -[[package]] -name = "rand_core" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc" - -[[package]] -name = "rand_hc" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b40677c7be09ae76218dc623efbf7b18e34bced3f38883af07bb75630a21bc4" -dependencies = [ - "rand_core 0.3.1", -] - -[[package]] -name = "rand_isaac" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ded997c9d5f13925be2a6fd7e66bf1872597f759fd9dd93513dd7e92e5a5ee08" -dependencies = [ - "rand_core 0.3.1", -] - -[[package]] -name = "rand_jitter" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1166d5c91dc97b88d1decc3285bb0a99ed84b05cfd0bc2341bdf2d43fc41e39b" -dependencies = [ - "libc", - "rand_core 0.4.2", - "winapi 0.3.9", -] - -[[package]] -name = "rand_os" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b75f676a1e053fc562eafbb47838d67c84801e38fc1ba459e8f180deabd5071" -dependencies = [ - "cloudabi", - "fuchsia-cprng", - "libc", - "rand_core 0.4.2", - "rdrand", - "winapi 0.3.9", -] - -[[package]] -name = "rand_pcg" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abf9b09b01790cfe0364f52bf32995ea3c39f4d2dd011eac241d2914146d0b44" -dependencies = [ - "autocfg 0.1.8", - "rand_core 0.4.2", -] - -[[package]] -name = "rand_xorshift" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbf7e9e623549b0e21f6e97cf8ecf247c1a8fd2e8a992ae265314300b2455d5c" -dependencies = [ - "rand_core 0.3.1", -] - -[[package]] -name = "rdrand" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2" -dependencies = [ - "rand_core 0.3.1", -] - -[[package]] -name = "safemem" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072" - -[[package]] -name = "slab" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb703cfe953bccee95685111adeedb76fabe4e97549a58d16f03ea7b9367bb32" - -[[package]] -name = "syn" -version = "1.0.91" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b683b2b825c8eef438b77c36a06dc262294da3d5a5813fac20da149241dcd44d" -dependencies = [ - "proc-macro2", - "quote", - "unicode-xid", -] - -[[package]] -name = "tls-api" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ebb4107c167a4087349fcf08aea4debc358fe69d60fe1df991781842cfe98a3" -dependencies = [ - "log", - "tokio", -] - -[[package]] -name = "tls-api-stub" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f8ff269def04f25ae84b9aac156a400b92c97018a184036548c91cedaafd783" -dependencies = [ - "tls-api", - "tokio", - "void", -] - -[[package]] -name = "tokio" -version = "0.2.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6703a273949a90131b290be1fe7b039d0fc884aa1935860dfcbe056f28cd8092" -dependencies = [ - "bytes", - "iovec", - "lazy_static", - "libc", - "memchr", - "mio", - "mio-uds", - "pin-project-lite 0.1.12", - "slab", -] - -[[package]] -name = "unicode-xid" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" - -[[package]] -name = "unix_socket" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6aa2700417c405c38f5e6902d699345241c28c0b7ade4abaad71e35a87eb1564" -dependencies = [ - "cfg-if 0.1.10", - "libc", -] - -[[package]] -name = "void" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" - -[[package]] -name = "winapi" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" - -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-build" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - -[[package]] -name = "ws2_32-sys" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" -dependencies = [ - "winapi 0.2.8", - "winapi-build", -] diff --git a/rust/raze/Cargo.toml b/rust/raze/Cargo.toml deleted file mode 100644 index 58bea1513..000000000 --- a/rust/raze/Cargo.toml +++ /dev/null @@ -1,35 +0,0 @@ -[package] -name = "compile_with_bazel" -version = "0.0.0" - -# Mandatory (or Cargo tooling is unhappy) -[lib] -path = "lib.rs" - -[dependencies] -futures = "=0.3.17" -grpc = "=0.8.3" -grpc-compiler = "=0.8.3" -grpc-protobuf = "=0.8.3" -protobuf = { version = "=2.18.2", features = ["with-bytes"] } -protobuf-codegen = "=2.18.2" - -# For routeguide example -json = "=0.12.4" -rand = "=0.6.5" - -[package.metadata.raze] -genmode = "Remote" -workspace_path = "//rust/raze" -output_buildfile_suffix = "BUILD.bazel" -package_aliases_dir = "." -default_gen_buildrs = true -rust_rules_workspace_name = "rules_rust" - - -# Plugins -[package.metadata.raze.crates.grpc-compiler.'*'] -extra_aliased_targets = ["cargo_bin_protoc_gen_rust_grpc"] - -[package.metadata.raze.crates.protobuf-codegen.'*'] -extra_aliased_targets = ["cargo_bin_protoc_gen_rust"] diff --git a/rust/raze/README.md b/rust/raze/README.md deleted file mode 100644 index dc5966b9e..000000000 --- a/rust/raze/README.md +++ /dev/null @@ -1,7 +0,0 @@ -Rust protobuf and gRPC dependencies managed by cargo raze: https://github.com/google/cargo-raze - -To update a dependency: - -- Update the `Cargo.toml` file with the new dependency version. -- Follow the instructions for installing raze at the link above (the "Remote Dependency Mode" option). If you have Cargo installed, this should just be `cargo install cargo-raze`. -- Run `make rust_raze` from the workspace root. diff --git a/rust/raze/crates.bzl b/rust/raze/crates.bzl deleted file mode 100644 index cda239de0..000000000 --- a/rust/raze/crates.bzl +++ /dev/null @@ -1,722 +0,0 @@ -""" -@generated -cargo-raze generated Bazel file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # buildifier: disable=load -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # buildifier: disable=load -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") # buildifier: disable=load - -def raze_fetch_remote_crates(): - """This function defines a collection of repos and should be called in a WORKSPACE file""" - maybe( - http_archive, - name = "raze__autocfg__0_1_8", - url = "https://crates.io/api/v1/crates/autocfg/0.1.8/download", - type = "tar.gz", - sha256 = "0dde43e75fd43e8a1bf86103336bc699aa8d17ad1be60c76c0bdfd4828e19b78", - strip_prefix = "autocfg-0.1.8", - build_file = Label("//rust/raze/remote:BUILD.autocfg-0.1.8.bazel"), - ) - - maybe( - http_archive, - name = "raze__autocfg__1_1_0", - url = "https://crates.io/api/v1/crates/autocfg/1.1.0/download", - type = "tar.gz", - sha256 = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa", - strip_prefix = "autocfg-1.1.0", - build_file = Label("//rust/raze/remote:BUILD.autocfg-1.1.0.bazel"), - ) - - maybe( - http_archive, - name = "raze__base64__0_9_3", - url = "https://crates.io/api/v1/crates/base64/0.9.3/download", - type = "tar.gz", - sha256 = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643", - strip_prefix = "base64-0.9.3", - build_file = Label("//rust/raze/remote:BUILD.base64-0.9.3.bazel"), - ) - - maybe( - http_archive, - name = "raze__bitflags__1_3_2", - url = "https://crates.io/api/v1/crates/bitflags/1.3.2/download", - type = "tar.gz", - sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a", - strip_prefix = "bitflags-1.3.2", - build_file = Label("//rust/raze/remote:BUILD.bitflags-1.3.2.bazel"), - ) - - maybe( - http_archive, - name = "raze__byteorder__1_4_3", - url = "https://crates.io/api/v1/crates/byteorder/1.4.3/download", - type = "tar.gz", - sha256 = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610", - strip_prefix = "byteorder-1.4.3", - build_file = Label("//rust/raze/remote:BUILD.byteorder-1.4.3.bazel"), - ) - - maybe( - http_archive, - name = "raze__bytes__0_5_6", - url = "https://crates.io/api/v1/crates/bytes/0.5.6/download", - type = "tar.gz", - sha256 = "0e4cec68f03f32e44924783795810fa50a7035d8c8ebe78580ad7e6c703fba38", - strip_prefix = "bytes-0.5.6", - build_file = Label("//rust/raze/remote:BUILD.bytes-0.5.6.bazel"), - ) - - maybe( - http_archive, - name = "raze__cfg_if__0_1_10", - url = "https://crates.io/api/v1/crates/cfg-if/0.1.10/download", - type = "tar.gz", - sha256 = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822", - strip_prefix = "cfg-if-0.1.10", - build_file = Label("//rust/raze/remote:BUILD.cfg-if-0.1.10.bazel"), - ) - - maybe( - http_archive, - name = "raze__cfg_if__1_0_0", - url = "https://crates.io/api/v1/crates/cfg-if/1.0.0/download", - type = "tar.gz", - sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd", - strip_prefix = "cfg-if-1.0.0", - build_file = Label("//rust/raze/remote:BUILD.cfg-if-1.0.0.bazel"), - ) - - maybe( - http_archive, - name = "raze__cloudabi__0_0_3", - url = "https://crates.io/api/v1/crates/cloudabi/0.0.3/download", - type = "tar.gz", - sha256 = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f", - strip_prefix = "cloudabi-0.0.3", - build_file = Label("//rust/raze/remote:BUILD.cloudabi-0.0.3.bazel"), - ) - - maybe( - http_archive, - name = "raze__fuchsia_cprng__0_1_1", - url = "https://crates.io/api/v1/crates/fuchsia-cprng/0.1.1/download", - type = "tar.gz", - sha256 = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba", - strip_prefix = "fuchsia-cprng-0.1.1", - build_file = Label("//rust/raze/remote:BUILD.fuchsia-cprng-0.1.1.bazel"), - ) - - maybe( - http_archive, - name = "raze__fuchsia_zircon__0_3_3", - url = "https://crates.io/api/v1/crates/fuchsia-zircon/0.3.3/download", - type = "tar.gz", - sha256 = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82", - strip_prefix = "fuchsia-zircon-0.3.3", - build_file = Label("//rust/raze/remote:BUILD.fuchsia-zircon-0.3.3.bazel"), - ) - - maybe( - http_archive, - name = "raze__fuchsia_zircon_sys__0_3_3", - url = "https://crates.io/api/v1/crates/fuchsia-zircon-sys/0.3.3/download", - type = "tar.gz", - sha256 = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7", - strip_prefix = "fuchsia-zircon-sys-0.3.3", - build_file = Label("//rust/raze/remote:BUILD.fuchsia-zircon-sys-0.3.3.bazel"), - ) - - maybe( - http_archive, - name = "raze__futures__0_3_17", - url = "https://crates.io/api/v1/crates/futures/0.3.17/download", - type = "tar.gz", - sha256 = "a12aa0eb539080d55c3f2d45a67c3b58b6b0773c1a3ca2dfec66d58c97fd66ca", - strip_prefix = "futures-0.3.17", - build_file = Label("//rust/raze/remote:BUILD.futures-0.3.17.bazel"), - ) - - maybe( - http_archive, - name = "raze__futures_channel__0_3_21", - url = "https://crates.io/api/v1/crates/futures-channel/0.3.21/download", - type = "tar.gz", - sha256 = "c3083ce4b914124575708913bca19bfe887522d6e2e6d0952943f5eac4a74010", - strip_prefix = "futures-channel-0.3.21", - build_file = Label("//rust/raze/remote:BUILD.futures-channel-0.3.21.bazel"), - ) - - maybe( - http_archive, - name = "raze__futures_core__0_3_21", - url = "https://crates.io/api/v1/crates/futures-core/0.3.21/download", - type = "tar.gz", - sha256 = "0c09fd04b7e4073ac7156a9539b57a484a8ea920f79c7c675d05d289ab6110d3", - strip_prefix = "futures-core-0.3.21", - build_file = Label("//rust/raze/remote:BUILD.futures-core-0.3.21.bazel"), - ) - - maybe( - http_archive, - name = "raze__futures_executor__0_3_21", - url = "https://crates.io/api/v1/crates/futures-executor/0.3.21/download", - type = "tar.gz", - sha256 = "9420b90cfa29e327d0429f19be13e7ddb68fa1cccb09d65e5706b8c7a749b8a6", - strip_prefix = "futures-executor-0.3.21", - build_file = Label("//rust/raze/remote:BUILD.futures-executor-0.3.21.bazel"), - ) - - maybe( - http_archive, - name = "raze__futures_io__0_3_21", - url = "https://crates.io/api/v1/crates/futures-io/0.3.21/download", - type = "tar.gz", - sha256 = "fc4045962a5a5e935ee2fdedaa4e08284547402885ab326734432bed5d12966b", - strip_prefix = "futures-io-0.3.21", - build_file = Label("//rust/raze/remote:BUILD.futures-io-0.3.21.bazel"), - ) - - maybe( - http_archive, - name = "raze__futures_macro__0_3_21", - url = "https://crates.io/api/v1/crates/futures-macro/0.3.21/download", - type = "tar.gz", - sha256 = "33c1e13800337f4d4d7a316bf45a567dbcb6ffe087f16424852d97e97a91f512", - strip_prefix = "futures-macro-0.3.21", - build_file = Label("//rust/raze/remote:BUILD.futures-macro-0.3.21.bazel"), - ) - - maybe( - http_archive, - name = "raze__futures_sink__0_3_21", - url = "https://crates.io/api/v1/crates/futures-sink/0.3.21/download", - type = "tar.gz", - sha256 = "21163e139fa306126e6eedaf49ecdb4588f939600f0b1e770f4205ee4b7fa868", - strip_prefix = "futures-sink-0.3.21", - build_file = Label("//rust/raze/remote:BUILD.futures-sink-0.3.21.bazel"), - ) - - maybe( - http_archive, - name = "raze__futures_task__0_3_21", - url = "https://crates.io/api/v1/crates/futures-task/0.3.21/download", - type = "tar.gz", - sha256 = "57c66a976bf5909d801bbef33416c41372779507e7a6b3a5e25e4749c58f776a", - strip_prefix = "futures-task-0.3.21", - build_file = Label("//rust/raze/remote:BUILD.futures-task-0.3.21.bazel"), - ) - - maybe( - http_archive, - name = "raze__futures_util__0_3_21", - url = "https://crates.io/api/v1/crates/futures-util/0.3.21/download", - type = "tar.gz", - sha256 = "d8b7abd5d659d9b90c8cba917f6ec750a74e2dc23902ef9cd4cc8c8b22e6036a", - strip_prefix = "futures-util-0.3.21", - build_file = Label("//rust/raze/remote:BUILD.futures-util-0.3.21.bazel"), - ) - - maybe( - http_archive, - name = "raze__grpc__0_8_3", - url = "https://crates.io/api/v1/crates/grpc/0.8.3/download", - type = "tar.gz", - sha256 = "efbd563cd51f8b9d3578a8029989b090aca83b8b411bfe1c7577b8b0f92937f8", - strip_prefix = "grpc-0.8.3", - build_file = Label("//rust/raze/remote:BUILD.grpc-0.8.3.bazel"), - ) - - maybe( - http_archive, - name = "raze__grpc_compiler__0_8_3", - url = "https://crates.io/api/v1/crates/grpc-compiler/0.8.3/download", - type = "tar.gz", - sha256 = "45f971449e16e799ebbf106d2414c115ff46f2849689c61da3a3271be0884a34", - strip_prefix = "grpc-compiler-0.8.3", - build_file = Label("//rust/raze/remote:BUILD.grpc-compiler-0.8.3.bazel"), - ) - - maybe( - http_archive, - name = "raze__grpc_protobuf__0_8_3", - url = "https://crates.io/api/v1/crates/grpc-protobuf/0.8.3/download", - type = "tar.gz", - sha256 = "2b39e472b8a5bd8344d55473eabda070bc28126cec26ca6a008fa1bbc3d0c4a2", - strip_prefix = "grpc-protobuf-0.8.3", - build_file = Label("//rust/raze/remote:BUILD.grpc-protobuf-0.8.3.bazel"), - ) - - maybe( - http_archive, - name = "raze__httpbis__0_9_1", - url = "https://crates.io/api/v1/crates/httpbis/0.9.1/download", - type = "tar.gz", - sha256 = "3d3e4404f8f87938a2db89336609bde64363f5a556b15af936343e7252c9648d", - strip_prefix = "httpbis-0.9.1", - build_file = Label("//rust/raze/remote:BUILD.httpbis-0.9.1.bazel"), - ) - - maybe( - http_archive, - name = "raze__iovec__0_1_4", - url = "https://crates.io/api/v1/crates/iovec/0.1.4/download", - type = "tar.gz", - sha256 = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e", - strip_prefix = "iovec-0.1.4", - build_file = Label("//rust/raze/remote:BUILD.iovec-0.1.4.bazel"), - ) - - maybe( - http_archive, - name = "raze__json__0_12_4", - url = "https://crates.io/api/v1/crates/json/0.12.4/download", - type = "tar.gz", - sha256 = "078e285eafdfb6c4b434e0d31e8cfcb5115b651496faca5749b88fafd4f23bfd", - strip_prefix = "json-0.12.4", - build_file = Label("//rust/raze/remote:BUILD.json-0.12.4.bazel"), - ) - - maybe( - http_archive, - name = "raze__kernel32_sys__0_2_2", - url = "https://crates.io/api/v1/crates/kernel32-sys/0.2.2/download", - type = "tar.gz", - sha256 = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d", - strip_prefix = "kernel32-sys-0.2.2", - build_file = Label("//rust/raze/remote:BUILD.kernel32-sys-0.2.2.bazel"), - ) - - maybe( - http_archive, - name = "raze__lazy_static__1_4_0", - url = "https://crates.io/api/v1/crates/lazy_static/1.4.0/download", - type = "tar.gz", - sha256 = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646", - strip_prefix = "lazy_static-1.4.0", - build_file = Label("//rust/raze/remote:BUILD.lazy_static-1.4.0.bazel"), - ) - - maybe( - http_archive, - name = "raze__libc__0_2_124", - url = "https://crates.io/api/v1/crates/libc/0.2.124/download", - type = "tar.gz", - sha256 = "21a41fed9d98f27ab1c6d161da622a4fa35e8a54a8adc24bbf3ddd0ef70b0e50", - strip_prefix = "libc-0.2.124", - build_file = Label("//rust/raze/remote:BUILD.libc-0.2.124.bazel"), - ) - - maybe( - http_archive, - name = "raze__log__0_4_16", - url = "https://crates.io/api/v1/crates/log/0.4.16/download", - type = "tar.gz", - sha256 = "6389c490849ff5bc16be905ae24bc913a9c8892e19b2341dbc175e14c341c2b8", - strip_prefix = "log-0.4.16", - build_file = Label("//rust/raze/remote:BUILD.log-0.4.16.bazel"), - ) - - maybe( - http_archive, - name = "raze__log_ndc__0_2_0", - url = "https://crates.io/api/v1/crates/log-ndc/0.2.0/download", - type = "tar.gz", - sha256 = "edb09057c7b58b7d27498b528eaee9a1e661b2974a733fcabbbc3350360bc8bd", - strip_prefix = "log-ndc-0.2.0", - build_file = Label("//rust/raze/remote:BUILD.log-ndc-0.2.0.bazel"), - ) - - maybe( - http_archive, - name = "raze__memchr__2_4_1", - url = "https://crates.io/api/v1/crates/memchr/2.4.1/download", - type = "tar.gz", - sha256 = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a", - strip_prefix = "memchr-2.4.1", - build_file = Label("//rust/raze/remote:BUILD.memchr-2.4.1.bazel"), - ) - - maybe( - http_archive, - name = "raze__mio__0_6_23", - url = "https://crates.io/api/v1/crates/mio/0.6.23/download", - type = "tar.gz", - sha256 = "4afd66f5b91bf2a3bc13fad0e21caedac168ca4c707504e75585648ae80e4cc4", - strip_prefix = "mio-0.6.23", - build_file = Label("//rust/raze/remote:BUILD.mio-0.6.23.bazel"), - ) - - maybe( - http_archive, - name = "raze__mio_uds__0_6_8", - url = "https://crates.io/api/v1/crates/mio-uds/0.6.8/download", - type = "tar.gz", - sha256 = "afcb699eb26d4332647cc848492bbc15eafb26f08d0304550d5aa1f612e066f0", - strip_prefix = "mio-uds-0.6.8", - build_file = Label("//rust/raze/remote:BUILD.mio-uds-0.6.8.bazel"), - ) - - maybe( - http_archive, - name = "raze__miow__0_2_2", - url = "https://crates.io/api/v1/crates/miow/0.2.2/download", - type = "tar.gz", - sha256 = "ebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944d", - strip_prefix = "miow-0.2.2", - build_file = Label("//rust/raze/remote:BUILD.miow-0.2.2.bazel"), - ) - - maybe( - http_archive, - name = "raze__net2__0_2_37", - url = "https://crates.io/api/v1/crates/net2/0.2.37/download", - type = "tar.gz", - sha256 = "391630d12b68002ae1e25e8f974306474966550ad82dac6886fb8910c19568ae", - strip_prefix = "net2-0.2.37", - build_file = Label("//rust/raze/remote:BUILD.net2-0.2.37.bazel"), - ) - - maybe( - http_archive, - name = "raze__pin_project_lite__0_1_12", - url = "https://crates.io/api/v1/crates/pin-project-lite/0.1.12/download", - type = "tar.gz", - sha256 = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777", - strip_prefix = "pin-project-lite-0.1.12", - build_file = Label("//rust/raze/remote:BUILD.pin-project-lite-0.1.12.bazel"), - ) - - maybe( - http_archive, - name = "raze__pin_project_lite__0_2_9", - url = "https://crates.io/api/v1/crates/pin-project-lite/0.2.9/download", - type = "tar.gz", - sha256 = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116", - strip_prefix = "pin-project-lite-0.2.9", - build_file = Label("//rust/raze/remote:BUILD.pin-project-lite-0.2.9.bazel"), - ) - - maybe( - http_archive, - name = "raze__pin_utils__0_1_0", - url = "https://crates.io/api/v1/crates/pin-utils/0.1.0/download", - type = "tar.gz", - sha256 = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184", - strip_prefix = "pin-utils-0.1.0", - build_file = Label("//rust/raze/remote:BUILD.pin-utils-0.1.0.bazel"), - ) - - maybe( - http_archive, - name = "raze__proc_macro2__1_0_37", - url = "https://crates.io/api/v1/crates/proc-macro2/1.0.37/download", - type = "tar.gz", - sha256 = "ec757218438d5fda206afc041538b2f6d889286160d649a86a24d37e1235afd1", - strip_prefix = "proc-macro2-1.0.37", - build_file = Label("//rust/raze/remote:BUILD.proc-macro2-1.0.37.bazel"), - ) - - maybe( - http_archive, - name = "raze__protobuf__2_18_2", - url = "https://crates.io/api/v1/crates/protobuf/2.18.2/download", - type = "tar.gz", - sha256 = "fe8e18df92889779cfe50ccf640173141ff73c5b2817e553d6d35230f798a036", - strip_prefix = "protobuf-2.18.2", - build_file = Label("//rust/raze/remote:BUILD.protobuf-2.18.2.bazel"), - ) - - maybe( - http_archive, - name = "raze__protobuf_codegen__2_18_2", - url = "https://crates.io/api/v1/crates/protobuf-codegen/2.18.2/download", - type = "tar.gz", - sha256 = "f49782fe28b5ff7d5d51cbfbe8985f3ff863acea663c515ed369c53f72e1d628", - strip_prefix = "protobuf-codegen-2.18.2", - build_file = Label("//rust/raze/remote:BUILD.protobuf-codegen-2.18.2.bazel"), - ) - - maybe( - http_archive, - name = "raze__quote__1_0_18", - url = "https://crates.io/api/v1/crates/quote/1.0.18/download", - type = "tar.gz", - sha256 = "a1feb54ed693b93a84e14094943b84b7c4eae204c512b7ccb95ab0c66d278ad1", - strip_prefix = "quote-1.0.18", - build_file = Label("//rust/raze/remote:BUILD.quote-1.0.18.bazel"), - ) - - maybe( - http_archive, - name = "raze__rand__0_5_6", - url = "https://crates.io/api/v1/crates/rand/0.5.6/download", - type = "tar.gz", - sha256 = "c618c47cd3ebd209790115ab837de41425723956ad3ce2e6a7f09890947cacb9", - strip_prefix = "rand-0.5.6", - build_file = Label("//rust/raze/remote:BUILD.rand-0.5.6.bazel"), - ) - - maybe( - http_archive, - name = "raze__rand__0_6_5", - url = "https://crates.io/api/v1/crates/rand/0.6.5/download", - type = "tar.gz", - sha256 = "6d71dacdc3c88c1fde3885a3be3fbab9f35724e6ce99467f7d9c5026132184ca", - strip_prefix = "rand-0.6.5", - build_file = Label("//rust/raze/remote:BUILD.rand-0.6.5.bazel"), - ) - - maybe( - http_archive, - name = "raze__rand_chacha__0_1_1", - url = "https://crates.io/api/v1/crates/rand_chacha/0.1.1/download", - type = "tar.gz", - sha256 = "556d3a1ca6600bfcbab7c7c91ccb085ac7fbbcd70e008a98742e7847f4f7bcef", - strip_prefix = "rand_chacha-0.1.1", - build_file = Label("//rust/raze/remote:BUILD.rand_chacha-0.1.1.bazel"), - ) - - maybe( - http_archive, - name = "raze__rand_core__0_3_1", - url = "https://crates.io/api/v1/crates/rand_core/0.3.1/download", - type = "tar.gz", - sha256 = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b", - strip_prefix = "rand_core-0.3.1", - build_file = Label("//rust/raze/remote:BUILD.rand_core-0.3.1.bazel"), - ) - - maybe( - http_archive, - name = "raze__rand_core__0_4_2", - url = "https://crates.io/api/v1/crates/rand_core/0.4.2/download", - type = "tar.gz", - sha256 = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc", - strip_prefix = "rand_core-0.4.2", - build_file = Label("//rust/raze/remote:BUILD.rand_core-0.4.2.bazel"), - ) - - maybe( - http_archive, - name = "raze__rand_hc__0_1_0", - url = "https://crates.io/api/v1/crates/rand_hc/0.1.0/download", - type = "tar.gz", - sha256 = "7b40677c7be09ae76218dc623efbf7b18e34bced3f38883af07bb75630a21bc4", - strip_prefix = "rand_hc-0.1.0", - build_file = Label("//rust/raze/remote:BUILD.rand_hc-0.1.0.bazel"), - ) - - maybe( - http_archive, - name = "raze__rand_isaac__0_1_1", - url = "https://crates.io/api/v1/crates/rand_isaac/0.1.1/download", - type = "tar.gz", - sha256 = "ded997c9d5f13925be2a6fd7e66bf1872597f759fd9dd93513dd7e92e5a5ee08", - strip_prefix = "rand_isaac-0.1.1", - build_file = Label("//rust/raze/remote:BUILD.rand_isaac-0.1.1.bazel"), - ) - - maybe( - http_archive, - name = "raze__rand_jitter__0_1_4", - url = "https://crates.io/api/v1/crates/rand_jitter/0.1.4/download", - type = "tar.gz", - sha256 = "1166d5c91dc97b88d1decc3285bb0a99ed84b05cfd0bc2341bdf2d43fc41e39b", - strip_prefix = "rand_jitter-0.1.4", - build_file = Label("//rust/raze/remote:BUILD.rand_jitter-0.1.4.bazel"), - ) - - maybe( - http_archive, - name = "raze__rand_os__0_1_3", - url = "https://crates.io/api/v1/crates/rand_os/0.1.3/download", - type = "tar.gz", - sha256 = "7b75f676a1e053fc562eafbb47838d67c84801e38fc1ba459e8f180deabd5071", - strip_prefix = "rand_os-0.1.3", - build_file = Label("//rust/raze/remote:BUILD.rand_os-0.1.3.bazel"), - ) - - maybe( - http_archive, - name = "raze__rand_pcg__0_1_2", - url = "https://crates.io/api/v1/crates/rand_pcg/0.1.2/download", - type = "tar.gz", - sha256 = "abf9b09b01790cfe0364f52bf32995ea3c39f4d2dd011eac241d2914146d0b44", - strip_prefix = "rand_pcg-0.1.2", - build_file = Label("//rust/raze/remote:BUILD.rand_pcg-0.1.2.bazel"), - ) - - maybe( - http_archive, - name = "raze__rand_xorshift__0_1_1", - url = "https://crates.io/api/v1/crates/rand_xorshift/0.1.1/download", - type = "tar.gz", - sha256 = "cbf7e9e623549b0e21f6e97cf8ecf247c1a8fd2e8a992ae265314300b2455d5c", - strip_prefix = "rand_xorshift-0.1.1", - build_file = Label("//rust/raze/remote:BUILD.rand_xorshift-0.1.1.bazel"), - ) - - maybe( - http_archive, - name = "raze__rdrand__0_4_0", - url = "https://crates.io/api/v1/crates/rdrand/0.4.0/download", - type = "tar.gz", - sha256 = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2", - strip_prefix = "rdrand-0.4.0", - build_file = Label("//rust/raze/remote:BUILD.rdrand-0.4.0.bazel"), - ) - - maybe( - http_archive, - name = "raze__safemem__0_3_3", - url = "https://crates.io/api/v1/crates/safemem/0.3.3/download", - type = "tar.gz", - sha256 = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072", - strip_prefix = "safemem-0.3.3", - build_file = Label("//rust/raze/remote:BUILD.safemem-0.3.3.bazel"), - ) - - maybe( - http_archive, - name = "raze__slab__0_4_6", - url = "https://crates.io/api/v1/crates/slab/0.4.6/download", - type = "tar.gz", - sha256 = "eb703cfe953bccee95685111adeedb76fabe4e97549a58d16f03ea7b9367bb32", - strip_prefix = "slab-0.4.6", - build_file = Label("//rust/raze/remote:BUILD.slab-0.4.6.bazel"), - ) - - maybe( - http_archive, - name = "raze__syn__1_0_91", - url = "https://crates.io/api/v1/crates/syn/1.0.91/download", - type = "tar.gz", - sha256 = "b683b2b825c8eef438b77c36a06dc262294da3d5a5813fac20da149241dcd44d", - strip_prefix = "syn-1.0.91", - build_file = Label("//rust/raze/remote:BUILD.syn-1.0.91.bazel"), - ) - - maybe( - http_archive, - name = "raze__tls_api__0_4_0", - url = "https://crates.io/api/v1/crates/tls-api/0.4.0/download", - type = "tar.gz", - sha256 = "4ebb4107c167a4087349fcf08aea4debc358fe69d60fe1df991781842cfe98a3", - strip_prefix = "tls-api-0.4.0", - build_file = Label("//rust/raze/remote:BUILD.tls-api-0.4.0.bazel"), - ) - - maybe( - http_archive, - name = "raze__tls_api_stub__0_4_0", - url = "https://crates.io/api/v1/crates/tls-api-stub/0.4.0/download", - type = "tar.gz", - sha256 = "6f8ff269def04f25ae84b9aac156a400b92c97018a184036548c91cedaafd783", - strip_prefix = "tls-api-stub-0.4.0", - build_file = Label("//rust/raze/remote:BUILD.tls-api-stub-0.4.0.bazel"), - ) - - maybe( - http_archive, - name = "raze__tokio__0_2_25", - url = "https://crates.io/api/v1/crates/tokio/0.2.25/download", - type = "tar.gz", - sha256 = "6703a273949a90131b290be1fe7b039d0fc884aa1935860dfcbe056f28cd8092", - strip_prefix = "tokio-0.2.25", - build_file = Label("//rust/raze/remote:BUILD.tokio-0.2.25.bazel"), - ) - - maybe( - http_archive, - name = "raze__unicode_xid__0_2_2", - url = "https://crates.io/api/v1/crates/unicode-xid/0.2.2/download", - type = "tar.gz", - sha256 = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3", - strip_prefix = "unicode-xid-0.2.2", - build_file = Label("//rust/raze/remote:BUILD.unicode-xid-0.2.2.bazel"), - ) - - maybe( - http_archive, - name = "raze__unix_socket__0_5_0", - url = "https://crates.io/api/v1/crates/unix_socket/0.5.0/download", - type = "tar.gz", - sha256 = "6aa2700417c405c38f5e6902d699345241c28c0b7ade4abaad71e35a87eb1564", - strip_prefix = "unix_socket-0.5.0", - build_file = Label("//rust/raze/remote:BUILD.unix_socket-0.5.0.bazel"), - ) - - maybe( - http_archive, - name = "raze__void__1_0_2", - url = "https://crates.io/api/v1/crates/void/1.0.2/download", - type = "tar.gz", - sha256 = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d", - strip_prefix = "void-1.0.2", - build_file = Label("//rust/raze/remote:BUILD.void-1.0.2.bazel"), - ) - - maybe( - http_archive, - name = "raze__winapi__0_2_8", - url = "https://crates.io/api/v1/crates/winapi/0.2.8/download", - type = "tar.gz", - sha256 = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a", - strip_prefix = "winapi-0.2.8", - build_file = Label("//rust/raze/remote:BUILD.winapi-0.2.8.bazel"), - ) - - maybe( - http_archive, - name = "raze__winapi__0_3_9", - url = "https://crates.io/api/v1/crates/winapi/0.3.9/download", - type = "tar.gz", - sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419", - strip_prefix = "winapi-0.3.9", - build_file = Label("//rust/raze/remote:BUILD.winapi-0.3.9.bazel"), - ) - - maybe( - http_archive, - name = "raze__winapi_build__0_1_1", - url = "https://crates.io/api/v1/crates/winapi-build/0.1.1/download", - type = "tar.gz", - sha256 = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc", - strip_prefix = "winapi-build-0.1.1", - build_file = Label("//rust/raze/remote:BUILD.winapi-build-0.1.1.bazel"), - ) - - maybe( - http_archive, - name = "raze__winapi_i686_pc_windows_gnu__0_4_0", - url = "https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download", - type = "tar.gz", - sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6", - strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0", - build_file = Label("//rust/raze/remote:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), - ) - - maybe( - http_archive, - name = "raze__winapi_x86_64_pc_windows_gnu__0_4_0", - url = "https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download", - type = "tar.gz", - sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f", - strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", - build_file = Label("//rust/raze/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), - ) - - maybe( - http_archive, - name = "raze__ws2_32_sys__0_2_1", - url = "https://crates.io/api/v1/crates/ws2_32-sys/0.2.1/download", - type = "tar.gz", - sha256 = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e", - strip_prefix = "ws2_32-sys-0.2.1", - build_file = Label("//rust/raze/remote:BUILD.ws2_32-sys-0.2.1.bazel"), - ) diff --git a/rust/raze/remote/BUILD.autocfg-0.1.8.bazel b/rust/raze/remote/BUILD.autocfg-0.1.8.bazel deleted file mode 100644 index 5dba30506..000000000 --- a/rust/raze/remote/BUILD.autocfg-0.1.8.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -rust_library( - name = "autocfg", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.1.8", - # buildifier: leave-alone - deps = [ - "@raze__autocfg__1_1_0//:autocfg", - ], -) diff --git a/rust/raze/remote/BUILD.autocfg-1.1.0.bazel b/rust/raze/remote/BUILD.autocfg-1.1.0.bazel deleted file mode 100644 index 7c823a89a..000000000 --- a/rust/raze/remote/BUILD.autocfg-1.1.0.bazel +++ /dev/null @@ -1,63 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -# Unsupported target "integers" with type "example" omitted - -# Unsupported target "paths" with type "example" omitted - -# Unsupported target "traits" with type "example" omitted - -# Unsupported target "versions" with type "example" omitted - -rust_library( - name = "autocfg", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.1.0", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "rustflags" with type "test" omitted diff --git a/rust/raze/remote/BUILD.base64-0.9.3.bazel b/rust/raze/remote/BUILD.base64-0.9.3.bazel deleted file mode 100644 index 076d645f4..000000000 --- a/rust/raze/remote/BUILD.base64-0.9.3.bazel +++ /dev/null @@ -1,67 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "benchmarks" with type "bench" omitted - -# Unsupported target "make_tables" with type "example" omitted - -rust_library( - name = "base64", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.9.3", - # buildifier: leave-alone - deps = [ - "@raze__byteorder__1_4_3//:byteorder", - "@raze__safemem__0_3_3//:safemem", - ], -) - -# Unsupported target "decode" with type "test" omitted - -# Unsupported target "encode" with type "test" omitted - -# Unsupported target "helpers" with type "test" omitted - -# Unsupported target "tests" with type "test" omitted diff --git a/rust/raze/remote/BUILD.bazel b/rust/raze/remote/BUILD.bazel deleted file mode 100644 index e69de29bb..000000000 diff --git a/rust/raze/remote/BUILD.bitflags-1.3.2.bazel b/rust/raze/remote/BUILD.bitflags-1.3.2.bazel deleted file mode 100644 index bf2b65a12..000000000 --- a/rust/raze/remote/BUILD.bitflags-1.3.2.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "bitflags", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.3.2", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "basic" with type "test" omitted - -# Unsupported target "compile" with type "test" omitted diff --git a/rust/raze/remote/BUILD.byteorder-1.4.3.bazel b/rust/raze/remote/BUILD.byteorder-1.4.3.bazel deleted file mode 100644 index 04d6f1933..000000000 --- a/rust/raze/remote/BUILD.byteorder-1.4.3.bazel +++ /dev/null @@ -1,57 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "unencumbered", # Unlicense from expression "Unlicense OR MIT" -]) - -# Generated Targets - -# Unsupported target "bench" with type "bench" omitted - -rust_library( - name = "byteorder", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.4.3", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/rust/raze/remote/BUILD.bytes-0.5.6.bazel b/rust/raze/remote/BUILD.bytes-0.5.6.bazel deleted file mode 100644 index c8fba5add..000000000 --- a/rust/raze/remote/BUILD.bytes-0.5.6.bazel +++ /dev/null @@ -1,83 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "buf" with type "bench" omitted - -# Unsupported target "bytes" with type "bench" omitted - -# Unsupported target "bytes_mut" with type "bench" omitted - -rust_library( - name = "bytes", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.5.6", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "test_buf" with type "test" omitted - -# Unsupported target "test_buf_mut" with type "test" omitted - -# Unsupported target "test_bytes" with type "test" omitted - -# Unsupported target "test_bytes_odd_alloc" with type "test" omitted - -# Unsupported target "test_bytes_vec_alloc" with type "test" omitted - -# Unsupported target "test_chain" with type "test" omitted - -# Unsupported target "test_debug" with type "test" omitted - -# Unsupported target "test_iter" with type "test" omitted - -# Unsupported target "test_reader" with type "test" omitted - -# Unsupported target "test_serde" with type "test" omitted - -# Unsupported target "test_take" with type "test" omitted diff --git a/rust/raze/remote/BUILD.cfg-if-0.1.10.bazel b/rust/raze/remote/BUILD.cfg-if-0.1.10.bazel deleted file mode 100644 index c34e33260..000000000 --- a/rust/raze/remote/BUILD.cfg-if-0.1.10.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "cfg_if", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.1.10", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "xcrate" with type "test" omitted diff --git a/rust/raze/remote/BUILD.cfg-if-1.0.0.bazel b/rust/raze/remote/BUILD.cfg-if-1.0.0.bazel deleted file mode 100644 index ba3391120..000000000 --- a/rust/raze/remote/BUILD.cfg-if-1.0.0.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "cfg_if", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.0", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "xcrate" with type "test" omitted diff --git a/rust/raze/remote/BUILD.cloudabi-0.0.3.bazel b/rust/raze/remote/BUILD.cloudabi-0.0.3.bazel deleted file mode 100644 index 5d7ef0f96..000000000 --- a/rust/raze/remote/BUILD.cloudabi-0.0.3.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "restricted", # BSD-2-Clause from expression "BSD-2-Clause" -]) - -# Generated Targets - -rust_library( - name = "cloudabi", - srcs = glob(["**/*.rs"]), - crate_features = [ - "bitflags", - "default", - ], - crate_root = "cloudabi.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.0.3", - # buildifier: leave-alone - deps = [ - "@raze__bitflags__1_3_2//:bitflags", - ], -) diff --git a/rust/raze/remote/BUILD.fuchsia-cprng-0.1.1.bazel b/rust/raze/remote/BUILD.fuchsia-cprng-0.1.1.bazel deleted file mode 100644 index 66db34d4e..000000000 --- a/rust/raze/remote/BUILD.fuchsia-cprng-0.1.1.bazel +++ /dev/null @@ -1,53 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "restricted", # no license -]) - -# Generated Targets - -rust_library( - name = "fuchsia_cprng", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.1.1", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/rust/raze/remote/BUILD.fuchsia-zircon-0.3.3.bazel b/rust/raze/remote/BUILD.fuchsia-zircon-0.3.3.bazel deleted file mode 100644 index a4785992f..000000000 --- a/rust/raze/remote/BUILD.fuchsia-zircon-0.3.3.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # BSD-3-Clause from expression "BSD-3-Clause" -]) - -# Generated Targets - -rust_library( - name = "fuchsia_zircon", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.3", - # buildifier: leave-alone - deps = [ - "@raze__bitflags__1_3_2//:bitflags", - "@raze__fuchsia_zircon_sys__0_3_3//:fuchsia_zircon_sys", - ], -) diff --git a/rust/raze/remote/BUILD.fuchsia-zircon-sys-0.3.3.bazel b/rust/raze/remote/BUILD.fuchsia-zircon-sys-0.3.3.bazel deleted file mode 100644 index 526ed8c00..000000000 --- a/rust/raze/remote/BUILD.fuchsia-zircon-sys-0.3.3.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # BSD-3-Clause from expression "BSD-3-Clause" -]) - -# Generated Targets - -# Unsupported target "hello" with type "example" omitted - -rust_library( - name = "fuchsia_zircon_sys", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.3", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/rust/raze/remote/BUILD.futures-0.3.17.bazel b/rust/raze/remote/BUILD.futures-0.3.17.bazel deleted file mode 100644 index 4bac748c6..000000000 --- a/rust/raze/remote/BUILD.futures-0.3.17.bazel +++ /dev/null @@ -1,174 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "futures", - srcs = glob(["**/*.rs"]), - crate_features = [ - "alloc", - "async-await", - "default", - "executor", - "futures-executor", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.17", - # buildifier: leave-alone - deps = [ - "@raze__futures_channel__0_3_21//:futures_channel", - "@raze__futures_core__0_3_21//:futures_core", - "@raze__futures_executor__0_3_21//:futures_executor", - "@raze__futures_io__0_3_21//:futures_io", - "@raze__futures_sink__0_3_21//:futures_sink", - "@raze__futures_task__0_3_21//:futures_task", - "@raze__futures_util__0_3_21//:futures_util", - ], -) - -# Unsupported target "_require_features" with type "test" omitted - -# Unsupported target "async_await_macros" with type "test" omitted - -# Unsupported target "auto_traits" with type "test" omitted - -# Unsupported target "compat" with type "test" omitted - -# Unsupported target "eager_drop" with type "test" omitted - -# Unsupported target "eventual" with type "test" omitted - -# Unsupported target "future_abortable" with type "test" omitted - -# Unsupported target "future_basic_combinators" with type "test" omitted - -# Unsupported target "future_fuse" with type "test" omitted - -# Unsupported target "future_inspect" with type "test" omitted - -# Unsupported target "future_join_all" with type "test" omitted - -# Unsupported target "future_obj" with type "test" omitted - -# Unsupported target "future_select_all" with type "test" omitted - -# Unsupported target "future_select_ok" with type "test" omitted - -# Unsupported target "future_shared" with type "test" omitted - -# Unsupported target "future_try_flatten_stream" with type "test" omitted - -# Unsupported target "future_try_join_all" with type "test" omitted - -# Unsupported target "io_buf_reader" with type "test" omitted - -# Unsupported target "io_buf_writer" with type "test" omitted - -# Unsupported target "io_cursor" with type "test" omitted - -# Unsupported target "io_lines" with type "test" omitted - -# Unsupported target "io_read" with type "test" omitted - -# Unsupported target "io_read_exact" with type "test" omitted - -# Unsupported target "io_read_line" with type "test" omitted - -# Unsupported target "io_read_to_end" with type "test" omitted - -# Unsupported target "io_read_to_string" with type "test" omitted - -# Unsupported target "io_read_until" with type "test" omitted - -# Unsupported target "io_window" with type "test" omitted - -# Unsupported target "io_write" with type "test" omitted - -# Unsupported target "lock_mutex" with type "test" omitted - -# Unsupported target "macro_comma_support" with type "test" omitted - -# Unsupported target "object_safety" with type "test" omitted - -# Unsupported target "oneshot" with type "test" omitted - -# Unsupported target "ready_queue" with type "test" omitted - -# Unsupported target "recurse" with type "test" omitted - -# Unsupported target "sink" with type "test" omitted - -# Unsupported target "sink_fanout" with type "test" omitted - -# Unsupported target "stream" with type "test" omitted - -# Unsupported target "stream_abortable" with type "test" omitted - -# Unsupported target "stream_buffer_unordered" with type "test" omitted - -# Unsupported target "stream_catch_unwind" with type "test" omitted - -# Unsupported target "stream_futures_ordered" with type "test" omitted - -# Unsupported target "stream_futures_unordered" with type "test" omitted - -# Unsupported target "stream_into_async_read" with type "test" omitted - -# Unsupported target "stream_peekable" with type "test" omitted - -# Unsupported target "stream_select_all" with type "test" omitted - -# Unsupported target "stream_select_next_some" with type "test" omitted - -# Unsupported target "stream_split" with type "test" omitted - -# Unsupported target "stream_try_stream" with type "test" omitted - -# Unsupported target "stream_unfold" with type "test" omitted - -# Unsupported target "task_arc_wake" with type "test" omitted - -# Unsupported target "task_atomic_waker" with type "test" omitted - -# Unsupported target "test_macro" with type "test" omitted - -# Unsupported target "try_join" with type "test" omitted diff --git a/rust/raze/remote/BUILD.futures-channel-0.3.21.bazel b/rust/raze/remote/BUILD.futures-channel-0.3.21.bazel deleted file mode 100644 index 9c743560c..000000000 --- a/rust/raze/remote/BUILD.futures-channel-0.3.21.bazel +++ /dev/null @@ -1,103 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "futures_channel_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "alloc", - "futures-sink", - "sink", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.21", - visibility = ["//visibility:private"], - deps = [ - ], -) - -# Unsupported target "sync_mpsc" with type "bench" omitted - -rust_library( - name = "futures_channel", - srcs = glob(["**/*.rs"]), - crate_features = [ - "alloc", - "futures-sink", - "sink", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.21", - # buildifier: leave-alone - deps = [ - ":futures_channel_build_script", - "@raze__futures_core__0_3_21//:futures_core", - "@raze__futures_sink__0_3_21//:futures_sink", - ], -) - -# Unsupported target "channel" with type "test" omitted - -# Unsupported target "mpsc" with type "test" omitted - -# Unsupported target "mpsc-close" with type "test" omitted - -# Unsupported target "oneshot" with type "test" omitted diff --git a/rust/raze/remote/BUILD.futures-core-0.3.21.bazel b/rust/raze/remote/BUILD.futures-core-0.3.21.bazel deleted file mode 100644 index 01dc0a864..000000000 --- a/rust/raze/remote/BUILD.futures-core-0.3.21.bazel +++ /dev/null @@ -1,87 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "futures_core_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "alloc", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.21", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "futures_core", - srcs = glob(["**/*.rs"]), - crate_features = [ - "alloc", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.21", - # buildifier: leave-alone - deps = [ - ":futures_core_build_script", - ], -) diff --git a/rust/raze/remote/BUILD.futures-executor-0.3.21.bazel b/rust/raze/remote/BUILD.futures-executor-0.3.21.bazel deleted file mode 100644 index ea0737bec..000000000 --- a/rust/raze/remote/BUILD.futures-executor-0.3.21.bazel +++ /dev/null @@ -1,61 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "thread_notify" with type "bench" omitted - -rust_library( - name = "futures_executor", - srcs = glob(["**/*.rs"]), - crate_features = [ - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.21", - # buildifier: leave-alone - deps = [ - "@raze__futures_core__0_3_21//:futures_core", - "@raze__futures_task__0_3_21//:futures_task", - "@raze__futures_util__0_3_21//:futures_util", - ], -) - -# Unsupported target "local_pool" with type "test" omitted diff --git a/rust/raze/remote/BUILD.futures-io-0.3.21.bazel b/rust/raze/remote/BUILD.futures-io-0.3.21.bazel deleted file mode 100644 index ea7596754..000000000 --- a/rust/raze/remote/BUILD.futures-io-0.3.21.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "futures_io", - srcs = glob(["**/*.rs"]), - crate_features = [ - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.21", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/rust/raze/remote/BUILD.futures-macro-0.3.21.bazel b/rust/raze/remote/BUILD.futures-macro-0.3.21.bazel deleted file mode 100644 index 318bb99e9..000000000 --- a/rust/raze/remote/BUILD.futures-macro-0.3.21.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_proc_macro( - name = "futures_macro", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.21", - # buildifier: leave-alone - deps = [ - "@raze__proc_macro2__1_0_37//:proc_macro2", - "@raze__quote__1_0_18//:quote", - "@raze__syn__1_0_91//:syn", - ], -) diff --git a/rust/raze/remote/BUILD.futures-sink-0.3.21.bazel b/rust/raze/remote/BUILD.futures-sink-0.3.21.bazel deleted file mode 100644 index 22dc66673..000000000 --- a/rust/raze/remote/BUILD.futures-sink-0.3.21.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "futures_sink", - srcs = glob(["**/*.rs"]), - crate_features = [ - "alloc", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.21", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/rust/raze/remote/BUILD.futures-task-0.3.21.bazel b/rust/raze/remote/BUILD.futures-task-0.3.21.bazel deleted file mode 100644 index 7607cd252..000000000 --- a/rust/raze/remote/BUILD.futures-task-0.3.21.bazel +++ /dev/null @@ -1,87 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "futures_task_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "alloc", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.21", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "futures_task", - srcs = glob(["**/*.rs"]), - crate_features = [ - "alloc", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.21", - # buildifier: leave-alone - deps = [ - ":futures_task_build_script", - ], -) diff --git a/rust/raze/remote/BUILD.futures-util-0.3.21.bazel b/rust/raze/remote/BUILD.futures-util-0.3.21.bazel deleted file mode 100644 index 97cd34447..000000000 --- a/rust/raze/remote/BUILD.futures-util-0.3.21.bazel +++ /dev/null @@ -1,125 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "futures_util_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "alloc", - "async-await", - "async-await-macro", - "channel", - "futures-channel", - "futures-io", - "futures-macro", - "futures-sink", - "io", - "memchr", - "sink", - "slab", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.21", - visibility = ["//visibility:private"], - deps = [ - ], -) - -# Unsupported target "flatten_unordered" with type "bench" omitted - -# Unsupported target "futures_unordered" with type "bench" omitted - -rust_library( - name = "futures_util", - srcs = glob(["**/*.rs"]), - crate_features = [ - "alloc", - "async-await", - "async-await-macro", - "channel", - "futures-channel", - "futures-io", - "futures-macro", - "futures-sink", - "io", - "memchr", - "sink", - "slab", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - proc_macro_deps = [ - "@raze__futures_macro__0_3_21//:futures_macro", - ], - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.21", - # buildifier: leave-alone - deps = [ - ":futures_util_build_script", - "@raze__futures_channel__0_3_21//:futures_channel", - "@raze__futures_core__0_3_21//:futures_core", - "@raze__futures_io__0_3_21//:futures_io", - "@raze__futures_sink__0_3_21//:futures_sink", - "@raze__futures_task__0_3_21//:futures_task", - "@raze__memchr__2_4_1//:memchr", - "@raze__pin_project_lite__0_2_9//:pin_project_lite", - "@raze__pin_utils__0_1_0//:pin_utils", - "@raze__slab__0_4_6//:slab", - ], -) diff --git a/rust/raze/remote/BUILD.grpc-0.8.3.bazel b/rust/raze/remote/BUILD.grpc-0.8.3.bazel deleted file mode 100644 index 67a2078ae..000000000 --- a/rust/raze/remote/BUILD.grpc-0.8.3.bazel +++ /dev/null @@ -1,68 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "grpc", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.8.3", - # buildifier: leave-alone - deps = [ - "@raze__base64__0_9_3//:base64", - "@raze__bytes__0_5_6//:bytes", - "@raze__futures__0_3_17//:futures", - "@raze__httpbis__0_9_1//:httpbis", - "@raze__log__0_4_16//:log", - "@raze__log_ndc__0_2_0//:log_ndc", - "@raze__tls_api__0_4_0//:tls_api", - "@raze__tls_api_stub__0_4_0//:tls_api_stub", - "@raze__tokio__0_2_25//:tokio", - ], -) - -# Unsupported target "client" with type "test" omitted - -# Unsupported target "server" with type "test" omitted - -# Unsupported target "simple" with type "test" omitted diff --git a/rust/raze/remote/BUILD.grpc-compiler-0.8.3.bazel b/rust/raze/remote/BUILD.grpc-compiler-0.8.3.bazel deleted file mode 100644 index cfeffde4e..000000000 --- a/rust/raze/remote/BUILD.grpc-compiler-0.8.3.bazel +++ /dev/null @@ -1,81 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_binary( - # Prefix bin name to disambiguate from (probable) collision with lib name - # N.B.: The exact form of this is subject to change. - name = "cargo_bin_protoc_gen_rust_grpc", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/bin/protoc-gen-rust-grpc.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.8.3", - # buildifier: leave-alone - deps = [ - ":grpc_compiler", - "@raze__protobuf__2_18_2//:protobuf", - "@raze__protobuf_codegen__2_18_2//:protobuf_codegen", - ], -) - -rust_library( - name = "grpc_compiler", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.8.3", - # buildifier: leave-alone - deps = [ - "@raze__protobuf__2_18_2//:protobuf", - "@raze__protobuf_codegen__2_18_2//:protobuf_codegen", - ], -) diff --git a/rust/raze/remote/BUILD.grpc-protobuf-0.8.3.bazel b/rust/raze/remote/BUILD.grpc-protobuf-0.8.3.bazel deleted file mode 100644 index 1e9327405..000000000 --- a/rust/raze/remote/BUILD.grpc-protobuf-0.8.3.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "grpc_protobuf", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.8.3", - # buildifier: leave-alone - deps = [ - "@raze__bytes__0_5_6//:bytes", - "@raze__grpc__0_8_3//:grpc", - "@raze__protobuf__2_18_2//:protobuf", - ], -) diff --git a/rust/raze/remote/BUILD.httpbis-0.9.1.bazel b/rust/raze/remote/BUILD.httpbis-0.9.1.bazel deleted file mode 100644 index 44208b076..000000000 --- a/rust/raze/remote/BUILD.httpbis-0.9.1.bazel +++ /dev/null @@ -1,204 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "httpbis_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.9.1", - visibility = ["//visibility:private"], - deps = [ - ] + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - ], - "//conditions:default": [], - }), -) - -rust_binary( - # Prefix bin name to disambiguate from (probable) collision with lib name - # N.B.: The exact form of this is subject to change. - name = "cargo_bin_client_server_loop", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/bin/client_server_loop.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.9.1", - # buildifier: leave-alone - deps = [ - ":httpbis", - ":httpbis_build_script", - "@raze__bytes__0_5_6//:bytes", - "@raze__futures__0_3_17//:futures", - "@raze__log__0_4_16//:log", - "@raze__log_ndc__0_2_0//:log_ndc", - "@raze__net2__0_2_37//:net2", - "@raze__rand__0_5_6//:rand", - "@raze__tls_api__0_4_0//:tls_api", - "@raze__tls_api_stub__0_4_0//:tls_api_stub", - "@raze__tokio__0_2_25//:tokio", - "@raze__void__1_0_2//:void", - ] + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@raze__unix_socket__0_5_0//:unix_socket", - ], - "//conditions:default": [], - }), -) - -# Unsupported target "client" with type "example" omitted - -# Unsupported target "server" with type "example" omitted - -rust_library( - name = "httpbis", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.9.1", - # buildifier: leave-alone - deps = [ - ":httpbis_build_script", - "@raze__bytes__0_5_6//:bytes", - "@raze__futures__0_3_17//:futures", - "@raze__log__0_4_16//:log", - "@raze__log_ndc__0_2_0//:log_ndc", - "@raze__net2__0_2_37//:net2", - "@raze__rand__0_5_6//:rand", - "@raze__tls_api__0_4_0//:tls_api", - "@raze__tls_api_stub__0_4_0//:tls_api_stub", - "@raze__tokio__0_2_25//:tokio", - "@raze__void__1_0_2//:void", - ] + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@raze__unix_socket__0_5_0//:unix_socket", - ], - "//conditions:default": [], - }), -) diff --git a/rust/raze/remote/BUILD.iovec-0.1.4.bazel b/rust/raze/remote/BUILD.iovec-0.1.4.bazel deleted file mode 100644 index 68cbbd12e..000000000 --- a/rust/raze/remote/BUILD.iovec-0.1.4.bazel +++ /dev/null @@ -1,78 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "iovec", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.1.4", - # buildifier: leave-alone - deps = [ - ] + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@raze__libc__0_2_124//:libc", - ], - "//conditions:default": [], - }), -) diff --git a/rust/raze/remote/BUILD.json-0.12.4.bazel b/rust/raze/remote/BUILD.json-0.12.4.bazel deleted file mode 100644 index 00d5dd5e2..000000000 --- a/rust/raze/remote/BUILD.json-0.12.4.bazel +++ /dev/null @@ -1,69 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "log" with type "bench" omitted - -rust_library( - name = "json", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.12.4", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "customgen" with type "test" omitted - -# Unsupported target "json_checker" with type "test" omitted - -# Unsupported target "number" with type "test" omitted - -# Unsupported target "parse" with type "test" omitted - -# Unsupported target "print_dec" with type "test" omitted - -# Unsupported target "stringify" with type "test" omitted - -# Unsupported target "value" with type "test" omitted diff --git a/rust/raze/remote/BUILD.kernel32-sys-0.2.2.bazel b/rust/raze/remote/BUILD.kernel32-sys-0.2.2.bazel deleted file mode 100644 index da0bee51a..000000000 --- a/rust/raze/remote/BUILD.kernel32-sys-0.2.2.bazel +++ /dev/null @@ -1,94 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "kernel32_sys_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.2.2", - visibility = ["//visibility:private"], - deps = [ - "@raze__winapi_build__0_1_1//:winapi_build", - ], -) - -alias( - name = "kernel32_sys", - actual = ":kernel32", - tags = [ - "cargo-raze", - "manual", - ], -) - -rust_library( - name = "kernel32", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.2.2", - # buildifier: leave-alone - deps = [ - ":kernel32_sys_build_script", - "@raze__winapi__0_2_8//:winapi", - ], -) diff --git a/rust/raze/remote/BUILD.lazy_static-1.4.0.bazel b/rust/raze/remote/BUILD.lazy_static-1.4.0.bazel deleted file mode 100644 index 7f365287f..000000000 --- a/rust/raze/remote/BUILD.lazy_static-1.4.0.bazel +++ /dev/null @@ -1,57 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "lazy_static", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.4.0", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "no_std" with type "test" omitted - -# Unsupported target "test" with type "test" omitted diff --git a/rust/raze/remote/BUILD.libc-0.2.124.bazel b/rust/raze/remote/BUILD.libc-0.2.124.bazel deleted file mode 100644 index 163e6c28f..000000000 --- a/rust/raze/remote/BUILD.libc-0.2.124.bazel +++ /dev/null @@ -1,89 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "libc_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.2.124", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "libc", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.2.124", - # buildifier: leave-alone - deps = [ - ":libc_build_script", - ], -) - -# Unsupported target "const_fn" with type "test" omitted diff --git a/rust/raze/remote/BUILD.log-0.4.16.bazel b/rust/raze/remote/BUILD.log-0.4.16.bazel deleted file mode 100644 index 6d0b0b2f6..000000000 --- a/rust/raze/remote/BUILD.log-0.4.16.bazel +++ /dev/null @@ -1,92 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "log_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.4.16", - visibility = ["//visibility:private"], - deps = [ - ], -) - -# Unsupported target "value" with type "bench" omitted - -rust_library( - name = "log", - srcs = glob(["**/*.rs"]), - crate_features = [ - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.4.16", - # buildifier: leave-alone - deps = [ - ":log_build_script", - "@raze__cfg_if__1_0_0//:cfg_if", - ], -) - -# Unsupported target "filters" with type "test" omitted - -# Unsupported target "macros" with type "test" omitted diff --git a/rust/raze/remote/BUILD.log-ndc-0.2.0.bazel b/rust/raze/remote/BUILD.log-ndc-0.2.0.bazel deleted file mode 100644 index b30e99e51..000000000 --- a/rust/raze/remote/BUILD.log-ndc-0.2.0.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "log_ndc", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.2.0", - # buildifier: leave-alone - deps = [ - "@raze__log__0_4_16//:log", - ], -) diff --git a/rust/raze/remote/BUILD.memchr-2.4.1.bazel b/rust/raze/remote/BUILD.memchr-2.4.1.bazel deleted file mode 100644 index 5d6177d2b..000000000 --- a/rust/raze/remote/BUILD.memchr-2.4.1.bazel +++ /dev/null @@ -1,87 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "unencumbered", # Unlicense from expression "Unlicense OR MIT" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "memchr_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "2.4.1", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "memchr", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "2.4.1", - # buildifier: leave-alone - deps = [ - ":memchr_build_script", - ], -) diff --git a/rust/raze/remote/BUILD.mio-0.6.23.bazel b/rust/raze/remote/BUILD.mio-0.6.23.bazel deleted file mode 100644 index 3daebf874..000000000 --- a/rust/raze/remote/BUILD.mio-0.6.23.bazel +++ /dev/null @@ -1,98 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "mio", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - "default", - "with-deprecated", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.6.23", - # buildifier: leave-alone - deps = [ - "@raze__cfg_if__0_1_10//:cfg_if", - "@raze__iovec__0_1_4//:iovec", - "@raze__log__0_4_16//:log", - "@raze__net2__0_2_37//:net2", - "@raze__slab__0_4_6//:slab", - ] + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@raze__libc__0_2_124//:libc", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@raze__kernel32_sys__0_2_2//:kernel32_sys", - "@raze__miow__0_2_2//:miow", - "@raze__winapi__0_2_8//:winapi", - ], - "//conditions:default": [], - }), -) - -# Unsupported target "test" with type "test" omitted diff --git a/rust/raze/remote/BUILD.mio-uds-0.6.8.bazel b/rust/raze/remote/BUILD.mio-uds-0.6.8.bazel deleted file mode 100644 index a995e2150..000000000 --- a/rust/raze/remote/BUILD.mio-uds-0.6.8.bazel +++ /dev/null @@ -1,80 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "mio_uds", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.6.8", - # buildifier: leave-alone - deps = [ - ] + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@raze__iovec__0_1_4//:iovec", - "@raze__libc__0_2_124//:libc", - "@raze__mio__0_6_23//:mio", - ], - "//conditions:default": [], - }), -) diff --git a/rust/raze/remote/BUILD.miow-0.2.2.bazel b/rust/raze/remote/BUILD.miow-0.2.2.bazel deleted file mode 100644 index 5a3777948..000000000 --- a/rust/raze/remote/BUILD.miow-0.2.2.bazel +++ /dev/null @@ -1,57 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "miow", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.2.2", - # buildifier: leave-alone - deps = [ - "@raze__kernel32_sys__0_2_2//:kernel32_sys", - "@raze__net2__0_2_37//:net2", - "@raze__winapi__0_2_8//:winapi", - "@raze__ws2_32_sys__0_2_1//:ws2_32_sys", - ], -) diff --git a/rust/raze/remote/BUILD.net2-0.2.37.bazel b/rust/raze/remote/BUILD.net2-0.2.37.bazel deleted file mode 100644 index 72fa36a72..000000000 --- a/rust/raze/remote/BUILD.net2-0.2.37.bazel +++ /dev/null @@ -1,91 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "net2", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - "default", - "duration", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.2.37", - # buildifier: leave-alone - deps = [ - "@raze__cfg_if__0_1_10//:cfg_if", - ] + selects.with_or({ - # cfg(any(target_os = "redox", unix, target_os = "wasi")) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@raze__libc__0_2_124//:libc", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@raze__winapi__0_3_9//:winapi", - ], - "//conditions:default": [], - }), -) diff --git a/rust/raze/remote/BUILD.pin-project-lite-0.1.12.bazel b/rust/raze/remote/BUILD.pin-project-lite-0.1.12.bazel deleted file mode 100644 index 7fed9c76d..000000000 --- a/rust/raze/remote/BUILD.pin-project-lite-0.1.12.bazel +++ /dev/null @@ -1,61 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -rust_library( - name = "pin_project_lite", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.1.12", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "compiletest" with type "test" omitted - -# Unsupported target "lint" with type "test" omitted - -# Unsupported target "proper_unpin" with type "test" omitted - -# Unsupported target "test" with type "test" omitted diff --git a/rust/raze/remote/BUILD.pin-project-lite-0.2.9.bazel b/rust/raze/remote/BUILD.pin-project-lite-0.2.9.bazel deleted file mode 100644 index 4b56ac425..000000000 --- a/rust/raze/remote/BUILD.pin-project-lite-0.2.9.bazel +++ /dev/null @@ -1,65 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -rust_library( - name = "pin_project_lite", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.2.9", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "compiletest" with type "test" omitted - -# Unsupported target "drop_order" with type "test" omitted - -# Unsupported target "expandtest" with type "test" omitted - -# Unsupported target "lint" with type "test" omitted - -# Unsupported target "proper_unpin" with type "test" omitted - -# Unsupported target "test" with type "test" omitted diff --git a/rust/raze/remote/BUILD.pin-utils-0.1.0.bazel b/rust/raze/remote/BUILD.pin-utils-0.1.0.bazel deleted file mode 100644 index cbc679d62..000000000 --- a/rust/raze/remote/BUILD.pin-utils-0.1.0.bazel +++ /dev/null @@ -1,57 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "pin_utils", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.1.0", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "projection" with type "test" omitted - -# Unsupported target "stack_pin" with type "test" omitted diff --git a/rust/raze/remote/BUILD.proc-macro2-1.0.37.bazel b/rust/raze/remote/BUILD.proc-macro2-1.0.37.bazel deleted file mode 100644 index c090e157a..000000000 --- a/rust/raze/remote/BUILD.proc-macro2-1.0.37.bazel +++ /dev/null @@ -1,98 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "proc_macro2_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "proc-macro", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.37", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "proc_macro2", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "proc-macro", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.37", - # buildifier: leave-alone - deps = [ - ":proc_macro2_build_script", - "@raze__unicode_xid__0_2_2//:unicode_xid", - ], -) - -# Unsupported target "comments" with type "test" omitted - -# Unsupported target "features" with type "test" omitted - -# Unsupported target "marker" with type "test" omitted - -# Unsupported target "test" with type "test" omitted - -# Unsupported target "test_fmt" with type "test" omitted diff --git a/rust/raze/remote/BUILD.protobuf-2.18.2.bazel b/rust/raze/remote/BUILD.protobuf-2.18.2.bazel deleted file mode 100644 index a4b958f59..000000000 --- a/rust/raze/remote/BUILD.protobuf-2.18.2.bazel +++ /dev/null @@ -1,92 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "protobuf_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "bytes", - "with-bytes", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "2.18.2", - visibility = ["//visibility:private"], - deps = [ - ], -) - -# Unsupported target "coded_input_stream" with type "bench" omitted - -# Unsupported target "coded_output_stream" with type "bench" omitted - -rust_library( - name = "protobuf", - srcs = glob(["**/*.rs"]), - crate_features = [ - "bytes", - "with-bytes", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "2.18.2", - # buildifier: leave-alone - deps = [ - ":protobuf_build_script", - "@raze__bytes__0_5_6//:bytes", - ], -) diff --git a/rust/raze/remote/BUILD.protobuf-codegen-2.18.2.bazel b/rust/raze/remote/BUILD.protobuf-codegen-2.18.2.bazel deleted file mode 100644 index 423d8902f..000000000 --- a/rust/raze/remote/BUILD.protobuf-codegen-2.18.2.bazel +++ /dev/null @@ -1,104 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_binary( - # Prefix bin name to disambiguate from (probable) collision with lib name - # N.B.: The exact form of this is subject to change. - name = "cargo_bin_protobuf_bin_gen_rust_do_not_use", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/bin/protobuf-bin-gen-rust-do-not-use.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "2.18.2", - # buildifier: leave-alone - deps = [ - ":protobuf_codegen", - "@raze__protobuf__2_18_2//:protobuf", - ], -) - -rust_binary( - # Prefix bin name to disambiguate from (probable) collision with lib name - # N.B.: The exact form of this is subject to change. - name = "cargo_bin_protoc_gen_rust", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/bin/protoc-gen-rust.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "2.18.2", - # buildifier: leave-alone - deps = [ - ":protobuf_codegen", - "@raze__protobuf__2_18_2//:protobuf", - ], -) - -rust_library( - name = "protobuf_codegen", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "2.18.2", - # buildifier: leave-alone - deps = [ - "@raze__protobuf__2_18_2//:protobuf", - ], -) diff --git a/rust/raze/remote/BUILD.quote-1.0.18.bazel b/rust/raze/remote/BUILD.quote-1.0.18.bazel deleted file mode 100644 index 3012dd501..000000000 --- a/rust/raze/remote/BUILD.quote-1.0.18.bazel +++ /dev/null @@ -1,60 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "quote", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "proc-macro", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.18", - # buildifier: leave-alone - deps = [ - "@raze__proc_macro2__1_0_37//:proc_macro2", - ], -) - -# Unsupported target "compiletest" with type "test" omitted - -# Unsupported target "test" with type "test" omitted diff --git a/rust/raze/remote/BUILD.rand-0.5.6.bazel b/rust/raze/remote/BUILD.rand-0.5.6.bazel deleted file mode 100644 index 37d49ee50..000000000 --- a/rust/raze/remote/BUILD.rand-0.5.6.bazel +++ /dev/null @@ -1,107 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "distributions" with type "bench" omitted - -# Unsupported target "generators" with type "bench" omitted - -# Unsupported target "misc" with type "bench" omitted - -# Unsupported target "monte-carlo" with type "example" omitted - -# Unsupported target "monty-hall" with type "example" omitted - -rust_library( - name = "rand", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - "alloc", - "cloudabi", - "default", - "fuchsia-cprng", - "libc", - "std", - "winapi", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.5.6", - # buildifier: leave-alone - deps = [ - "@raze__rand_core__0_3_1//:rand_core", - ] + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@raze__libc__0_2_124//:libc", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@raze__winapi__0_3_9//:winapi", - ], - "//conditions:default": [], - }), -) - -# Unsupported target "bool" with type "test" omitted diff --git a/rust/raze/remote/BUILD.rand-0.6.5.bazel b/rust/raze/remote/BUILD.rand-0.6.5.bazel deleted file mode 100644 index c0e019d59..000000000 --- a/rust/raze/remote/BUILD.rand-0.6.5.bazel +++ /dev/null @@ -1,178 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "rand_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "alloc", - "default", - "rand_os", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.6.5", - visibility = ["//visibility:private"], - deps = [ - "@raze__autocfg__0_1_8//:autocfg", - ] + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - ], - "//conditions:default": [], - }), -) - -# Unsupported target "distributions" with type "bench" omitted - -# Unsupported target "generators" with type "bench" omitted - -# Unsupported target "misc" with type "bench" omitted - -# Unsupported target "seq" with type "bench" omitted - -# Unsupported target "monte-carlo" with type "example" omitted - -# Unsupported target "monty-hall" with type "example" omitted - -rust_library( - name = "rand", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - "alloc", - "default", - "rand_os", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.6.5", - # buildifier: leave-alone - deps = [ - ":rand_build_script", - "@raze__rand_chacha__0_1_1//:rand_chacha", - "@raze__rand_core__0_4_2//:rand_core", - "@raze__rand_hc__0_1_0//:rand_hc", - "@raze__rand_isaac__0_1_1//:rand_isaac", - "@raze__rand_jitter__0_1_4//:rand_jitter", - "@raze__rand_os__0_1_3//:rand_os", - "@raze__rand_pcg__0_1_2//:rand_pcg", - "@raze__rand_xorshift__0_1_1//:rand_xorshift", - ] + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@raze__libc__0_2_124//:libc", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@raze__winapi__0_3_9//:winapi", - ], - "//conditions:default": [], - }), -) - -# Unsupported target "uniformity" with type "test" omitted diff --git a/rust/raze/remote/BUILD.rand_chacha-0.1.1.bazel b/rust/raze/remote/BUILD.rand_chacha-0.1.1.bazel deleted file mode 100644 index 5733bc7ea..000000000 --- a/rust/raze/remote/BUILD.rand_chacha-0.1.1.bazel +++ /dev/null @@ -1,85 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "rand_chacha_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.1.1", - visibility = ["//visibility:private"], - deps = [ - "@raze__autocfg__0_1_8//:autocfg", - ], -) - -rust_library( - name = "rand_chacha", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.1.1", - # buildifier: leave-alone - deps = [ - ":rand_chacha_build_script", - "@raze__rand_core__0_3_1//:rand_core", - ], -) diff --git a/rust/raze/remote/BUILD.rand_core-0.3.1.bazel b/rust/raze/remote/BUILD.rand_core-0.3.1.bazel deleted file mode 100644 index 42b1ae0a9..000000000 --- a/rust/raze/remote/BUILD.rand_core-0.3.1.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "rand_core", - srcs = glob(["**/*.rs"]), - crate_features = [ - "alloc", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.1", - # buildifier: leave-alone - deps = [ - "@raze__rand_core__0_4_2//:rand_core", - ], -) diff --git a/rust/raze/remote/BUILD.rand_core-0.4.2.bazel b/rust/raze/remote/BUILD.rand_core-0.4.2.bazel deleted file mode 100644 index 0522bcc35..000000000 --- a/rust/raze/remote/BUILD.rand_core-0.4.2.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "rand_core", - srcs = glob(["**/*.rs"]), - crate_features = [ - "alloc", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.4.2", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/rust/raze/remote/BUILD.rand_hc-0.1.0.bazel b/rust/raze/remote/BUILD.rand_hc-0.1.0.bazel deleted file mode 100644 index c5dbcc1c1..000000000 --- a/rust/raze/remote/BUILD.rand_hc-0.1.0.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "rand_hc", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.1.0", - # buildifier: leave-alone - deps = [ - "@raze__rand_core__0_3_1//:rand_core", - ], -) diff --git a/rust/raze/remote/BUILD.rand_isaac-0.1.1.bazel b/rust/raze/remote/BUILD.rand_isaac-0.1.1.bazel deleted file mode 100644 index d84d6820a..000000000 --- a/rust/raze/remote/BUILD.rand_isaac-0.1.1.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "rand_isaac", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.1.1", - # buildifier: leave-alone - deps = [ - "@raze__rand_core__0_3_1//:rand_core", - ], -) diff --git a/rust/raze/remote/BUILD.rand_jitter-0.1.4.bazel b/rust/raze/remote/BUILD.rand_jitter-0.1.4.bazel deleted file mode 100644 index 2f3cd1678..000000000 --- a/rust/raze/remote/BUILD.rand_jitter-0.1.4.bazel +++ /dev/null @@ -1,82 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "mod" with type "bench" omitted - -rust_library( - name = "rand_jitter", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.1.4", - # buildifier: leave-alone - deps = [ - "@raze__rand_core__0_4_2//:rand_core", - ] + selects.with_or({ - # cfg(any(target_os = "macos", target_os = "ios")) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:x86_64-apple-ios", - ): [ - "@raze__libc__0_2_124//:libc", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(target_os = "windows") - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@raze__winapi__0_3_9//:winapi", - ], - "//conditions:default": [], - }), -) - -# Unsupported target "mod" with type "test" omitted diff --git a/rust/raze/remote/BUILD.rand_os-0.1.3.bazel b/rust/raze/remote/BUILD.rand_os-0.1.3.bazel deleted file mode 100644 index 3bfc72631..000000000 --- a/rust/raze/remote/BUILD.rand_os-0.1.3.bazel +++ /dev/null @@ -1,90 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "rand_os", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.1.3", - # buildifier: leave-alone - deps = [ - "@raze__rand_core__0_4_2//:rand_core", - ] + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@raze__libc__0_2_124//:libc", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@raze__winapi__0_3_9//:winapi", - ], - "//conditions:default": [], - }), -) - -# Unsupported target "mod" with type "test" omitted diff --git a/rust/raze/remote/BUILD.rand_pcg-0.1.2.bazel b/rust/raze/remote/BUILD.rand_pcg-0.1.2.bazel deleted file mode 100644 index 3ae1a8761..000000000 --- a/rust/raze/remote/BUILD.rand_pcg-0.1.2.bazel +++ /dev/null @@ -1,89 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "rand_pcg_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.1.2", - visibility = ["//visibility:private"], - deps = [ - "@raze__autocfg__0_1_8//:autocfg", - ], -) - -rust_library( - name = "rand_pcg", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.1.2", - # buildifier: leave-alone - deps = [ - ":rand_pcg_build_script", - "@raze__rand_core__0_4_2//:rand_core", - ], -) - -# Unsupported target "lcg64xsh32" with type "test" omitted - -# Unsupported target "mcg128xsl64" with type "test" omitted diff --git a/rust/raze/remote/BUILD.rand_xorshift-0.1.1.bazel b/rust/raze/remote/BUILD.rand_xorshift-0.1.1.bazel deleted file mode 100644 index fb296564b..000000000 --- a/rust/raze/remote/BUILD.rand_xorshift-0.1.1.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "rand_xorshift", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.1.1", - # buildifier: leave-alone - deps = [ - "@raze__rand_core__0_3_1//:rand_core", - ], -) - -# Unsupported target "mod" with type "test" omitted diff --git a/rust/raze/remote/BUILD.rdrand-0.4.0.bazel b/rust/raze/remote/BUILD.rdrand-0.4.0.bazel deleted file mode 100644 index 65cfb720d..000000000 --- a/rust/raze/remote/BUILD.rdrand-0.4.0.bazel +++ /dev/null @@ -1,62 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # ISC from expression "ISC" -]) - -# Generated Targets - -# Unsupported target "rdrand" with type "bench" omitted - -# Unsupported target "rdseed" with type "bench" omitted - -# Unsupported target "std" with type "bench" omitted - -rust_library( - name = "rdrand", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.4.0", - # buildifier: leave-alone - deps = [ - "@raze__rand_core__0_3_1//:rand_core", - ], -) diff --git a/rust/raze/remote/BUILD.safemem-0.3.3.bazel b/rust/raze/remote/BUILD.safemem-0.3.3.bazel deleted file mode 100644 index 753349127..000000000 --- a/rust/raze/remote/BUILD.safemem-0.3.3.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "safemem", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.3", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/rust/raze/remote/BUILD.slab-0.4.6.bazel b/rust/raze/remote/BUILD.slab-0.4.6.bazel deleted file mode 100644 index 924c4a95f..000000000 --- a/rust/raze/remote/BUILD.slab-0.4.6.bazel +++ /dev/null @@ -1,59 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "slab", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.4.6", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "serde" with type "test" omitted - -# Unsupported target "slab" with type "test" omitted diff --git a/rust/raze/remote/BUILD.syn-1.0.91.bazel b/rust/raze/remote/BUILD.syn-1.0.91.bazel deleted file mode 100644 index dba87ff65..000000000 --- a/rust/raze/remote/BUILD.syn-1.0.91.bazel +++ /dev/null @@ -1,160 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "syn_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "clone-impls", - "default", - "derive", - "full", - "parsing", - "printing", - "proc-macro", - "quote", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.91", - visibility = ["//visibility:private"], - deps = [ - ], -) - -# Unsupported target "file" with type "bench" omitted - -# Unsupported target "rust" with type "bench" omitted - -rust_library( - name = "syn", - srcs = glob(["**/*.rs"]), - crate_features = [ - "clone-impls", - "default", - "derive", - "full", - "parsing", - "printing", - "proc-macro", - "quote", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.91", - # buildifier: leave-alone - deps = [ - ":syn_build_script", - "@raze__proc_macro2__1_0_37//:proc_macro2", - "@raze__quote__1_0_18//:quote", - "@raze__unicode_xid__0_2_2//:unicode_xid", - ], -) - -# Unsupported target "regression" with type "test" omitted - -# Unsupported target "test_asyncness" with type "test" omitted - -# Unsupported target "test_attribute" with type "test" omitted - -# Unsupported target "test_derive_input" with type "test" omitted - -# Unsupported target "test_expr" with type "test" omitted - -# Unsupported target "test_generics" with type "test" omitted - -# Unsupported target "test_grouping" with type "test" omitted - -# Unsupported target "test_ident" with type "test" omitted - -# Unsupported target "test_item" with type "test" omitted - -# Unsupported target "test_iterators" with type "test" omitted - -# Unsupported target "test_lit" with type "test" omitted - -# Unsupported target "test_meta" with type "test" omitted - -# Unsupported target "test_parse_buffer" with type "test" omitted - -# Unsupported target "test_parse_stream" with type "test" omitted - -# Unsupported target "test_pat" with type "test" omitted - -# Unsupported target "test_path" with type "test" omitted - -# Unsupported target "test_precedence" with type "test" omitted - -# Unsupported target "test_receiver" with type "test" omitted - -# Unsupported target "test_round_trip" with type "test" omitted - -# Unsupported target "test_shebang" with type "test" omitted - -# Unsupported target "test_should_parse" with type "test" omitted - -# Unsupported target "test_size" with type "test" omitted - -# Unsupported target "test_stmt" with type "test" omitted - -# Unsupported target "test_token_trees" with type "test" omitted - -# Unsupported target "test_ty" with type "test" omitted - -# Unsupported target "test_visibility" with type "test" omitted - -# Unsupported target "zzz_stable" with type "test" omitted diff --git a/rust/raze/remote/BUILD.tls-api-0.4.0.bazel b/rust/raze/remote/BUILD.tls-api-0.4.0.bazel deleted file mode 100644 index 8ce5ddf78..000000000 --- a/rust/raze/remote/BUILD.tls-api-0.4.0.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "tls_api", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.4.0", - # buildifier: leave-alone - deps = [ - "@raze__log__0_4_16//:log", - "@raze__tokio__0_2_25//:tokio", - ], -) diff --git a/rust/raze/remote/BUILD.tls-api-stub-0.4.0.bazel b/rust/raze/remote/BUILD.tls-api-stub-0.4.0.bazel deleted file mode 100644 index 9c1f7be89..000000000 --- a/rust/raze/remote/BUILD.tls-api-stub-0.4.0.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "tls_api_stub", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.4.0", - # buildifier: leave-alone - deps = [ - "@raze__tls_api__0_4_0//:tls_api", - "@raze__tokio__0_2_25//:tokio", - "@raze__void__1_0_2//:void", - ], -) diff --git a/rust/raze/remote/BUILD.tokio-0.2.25.bazel b/rust/raze/remote/BUILD.tokio-0.2.25.bazel deleted file mode 100644 index a24875f8a..000000000 --- a/rust/raze/remote/BUILD.tokio-0.2.25.bazel +++ /dev/null @@ -1,299 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "tokio", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - "default", - "dns", - "io-driver", - "io-util", - "iovec", - "lazy_static", - "libc", - "memchr", - "mio", - "mio-uds", - "net", - "rt-core", - "slab", - "tcp", - "time", - "udp", - "uds", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.2.25", - # buildifier: leave-alone - deps = [ - "@raze__bytes__0_5_6//:bytes", - "@raze__iovec__0_1_4//:iovec", - "@raze__lazy_static__1_4_0//:lazy_static", - "@raze__memchr__2_4_1//:memchr", - "@raze__mio__0_6_23//:mio", - "@raze__pin_project_lite__0_1_12//:pin_project_lite", - "@raze__slab__0_4_6//:slab", - ] + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@raze__libc__0_2_124//:libc", - "@raze__mio_uds__0_6_8//:mio_uds", - ], - "//conditions:default": [], - }), -) - -# Unsupported target "_require_full" with type "test" omitted - -# Unsupported target "async_send_sync" with type "test" omitted - -# Unsupported target "buffered" with type "test" omitted - -# Unsupported target "fs" with type "test" omitted - -# Unsupported target "fs_copy" with type "test" omitted - -# Unsupported target "fs_dir" with type "test" omitted - -# Unsupported target "fs_file" with type "test" omitted - -# Unsupported target "fs_file_mocked" with type "test" omitted - -# Unsupported target "fs_link" with type "test" omitted - -# Unsupported target "io_async_read" with type "test" omitted - -# Unsupported target "io_chain" with type "test" omitted - -# Unsupported target "io_copy" with type "test" omitted - -# Unsupported target "io_driver" with type "test" omitted - -# Unsupported target "io_driver_drop" with type "test" omitted - -# Unsupported target "io_lines" with type "test" omitted - -# Unsupported target "io_mem_stream" with type "test" omitted - -# Unsupported target "io_read" with type "test" omitted - -# Unsupported target "io_read_exact" with type "test" omitted - -# Unsupported target "io_read_line" with type "test" omitted - -# Unsupported target "io_read_to_end" with type "test" omitted - -# Unsupported target "io_read_to_string" with type "test" omitted - -# Unsupported target "io_read_until" with type "test" omitted - -# Unsupported target "io_reader_stream" with type "test" omitted - -# Unsupported target "io_split" with type "test" omitted - -# Unsupported target "io_take" with type "test" omitted - -# Unsupported target "io_write" with type "test" omitted - -# Unsupported target "io_write_all" with type "test" omitted - -# Unsupported target "io_write_int" with type "test" omitted - -# Unsupported target "macros_join" with type "test" omitted - -# Unsupported target "macros_pin" with type "test" omitted - -# Unsupported target "macros_select" with type "test" omitted - -# Unsupported target "macros_test" with type "test" omitted - -# Unsupported target "macros_try_join" with type "test" omitted - -# Unsupported target "net_bind_resource" with type "test" omitted - -# Unsupported target "net_lookup_host" with type "test" omitted - -# Unsupported target "no_rt" with type "test" omitted - -# Unsupported target "process_issue_2174" with type "test" omitted - -# Unsupported target "process_issue_42" with type "test" omitted - -# Unsupported target "process_kill_on_drop" with type "test" omitted - -# Unsupported target "process_smoke" with type "test" omitted - -# Unsupported target "rt_basic" with type "test" omitted - -# Unsupported target "rt_common" with type "test" omitted - -# Unsupported target "rt_threaded" with type "test" omitted - -# Unsupported target "signal_ctrl_c" with type "test" omitted - -# Unsupported target "signal_drop_recv" with type "test" omitted - -# Unsupported target "signal_drop_rt" with type "test" omitted - -# Unsupported target "signal_drop_signal" with type "test" omitted - -# Unsupported target "signal_multi_rt" with type "test" omitted - -# Unsupported target "signal_no_rt" with type "test" omitted - -# Unsupported target "signal_notify_both" with type "test" omitted - -# Unsupported target "signal_twice" with type "test" omitted - -# Unsupported target "signal_usr1" with type "test" omitted - -# Unsupported target "stream_chain" with type "test" omitted - -# Unsupported target "stream_collect" with type "test" omitted - -# Unsupported target "stream_empty" with type "test" omitted - -# Unsupported target "stream_fuse" with type "test" omitted - -# Unsupported target "stream_iter" with type "test" omitted - -# Unsupported target "stream_merge" with type "test" omitted - -# Unsupported target "stream_once" with type "test" omitted - -# Unsupported target "stream_pending" with type "test" omitted - -# Unsupported target "stream_reader" with type "test" omitted - -# Unsupported target "stream_stream_map" with type "test" omitted - -# Unsupported target "stream_timeout" with type "test" omitted - -# Unsupported target "sync_barrier" with type "test" omitted - -# Unsupported target "sync_broadcast" with type "test" omitted - -# Unsupported target "sync_cancellation_token" with type "test" omitted - -# Unsupported target "sync_errors" with type "test" omitted - -# Unsupported target "sync_mpsc" with type "test" omitted - -# Unsupported target "sync_mutex" with type "test" omitted - -# Unsupported target "sync_mutex_owned" with type "test" omitted - -# Unsupported target "sync_notify" with type "test" omitted - -# Unsupported target "sync_oneshot" with type "test" omitted - -# Unsupported target "sync_rwlock" with type "test" omitted - -# Unsupported target "sync_semaphore" with type "test" omitted - -# Unsupported target "sync_semaphore_owned" with type "test" omitted - -# Unsupported target "sync_watch" with type "test" omitted - -# Unsupported target "task_blocking" with type "test" omitted - -# Unsupported target "task_local" with type "test" omitted - -# Unsupported target "task_local_set" with type "test" omitted - -# Unsupported target "tcp_accept" with type "test" omitted - -# Unsupported target "tcp_connect" with type "test" omitted - -# Unsupported target "tcp_echo" with type "test" omitted - -# Unsupported target "tcp_into_split" with type "test" omitted - -# Unsupported target "tcp_peek" with type "test" omitted - -# Unsupported target "tcp_shutdown" with type "test" omitted - -# Unsupported target "tcp_split" with type "test" omitted - -# Unsupported target "test_clock" with type "test" omitted - -# Unsupported target "time_delay" with type "test" omitted - -# Unsupported target "time_delay_queue" with type "test" omitted - -# Unsupported target "time_interval" with type "test" omitted - -# Unsupported target "time_rt" with type "test" omitted - -# Unsupported target "time_throttle" with type "test" omitted - -# Unsupported target "time_timeout" with type "test" omitted - -# Unsupported target "udp" with type "test" omitted - -# Unsupported target "uds_cred" with type "test" omitted - -# Unsupported target "uds_datagram" with type "test" omitted - -# Unsupported target "uds_split" with type "test" omitted - -# Unsupported target "uds_stream" with type "test" omitted diff --git a/rust/raze/remote/BUILD.unicode-xid-0.2.2.bazel b/rust/raze/remote/BUILD.unicode-xid-0.2.2.bazel deleted file mode 100644 index 82b7ce169..000000000 --- a/rust/raze/remote/BUILD.unicode-xid-0.2.2.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "xid" with type "bench" omitted - -rust_library( - name = "unicode_xid", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.2.2", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "exhaustive_tests" with type "test" omitted diff --git a/rust/raze/remote/BUILD.unix_socket-0.5.0.bazel b/rust/raze/remote/BUILD.unix_socket-0.5.0.bazel deleted file mode 100644 index 719ee9109..000000000 --- a/rust/raze/remote/BUILD.unix_socket-0.5.0.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "unix_socket", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.5.0", - # buildifier: leave-alone - deps = [ - "@raze__cfg_if__0_1_10//:cfg_if", - "@raze__libc__0_2_124//:libc", - ], -) diff --git a/rust/raze/remote/BUILD.void-1.0.2.bazel b/rust/raze/remote/BUILD.void-1.0.2.bazel deleted file mode 100644 index 2803b13ae..000000000 --- a/rust/raze/remote/BUILD.void-1.0.2.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "void", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.2", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/rust/raze/remote/BUILD.winapi-0.2.8.bazel b/rust/raze/remote/BUILD.winapi-0.2.8.bazel deleted file mode 100644 index d450de915..000000000 --- a/rust/raze/remote/BUILD.winapi-0.2.8.bazel +++ /dev/null @@ -1,53 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "winapi", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.2.8", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/rust/raze/remote/BUILD.winapi-0.3.9.bazel b/rust/raze/remote/BUILD.winapi-0.3.9.bazel deleted file mode 100644 index 39b0ccd45..000000000 --- a/rust/raze/remote/BUILD.winapi-0.3.9.bazel +++ /dev/null @@ -1,101 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "winapi_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "handleapi", - "minwindef", - "ntsecapi", - "profileapi", - "winnt", - "winsock2", - "ws2def", - "ws2ipdef", - "ws2tcpip", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.9", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "winapi", - srcs = glob(["**/*.rs"]), - crate_features = [ - "handleapi", - "minwindef", - "ntsecapi", - "profileapi", - "winnt", - "winsock2", - "ws2def", - "ws2ipdef", - "ws2tcpip", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.9", - # buildifier: leave-alone - deps = [ - ":winapi_build_script", - ], -) diff --git a/rust/raze/remote/BUILD.winapi-build-0.1.1.bazel b/rust/raze/remote/BUILD.winapi-build-0.1.1.bazel deleted file mode 100644 index 8b9b93719..000000000 --- a/rust/raze/remote/BUILD.winapi-build-0.1.1.bazel +++ /dev/null @@ -1,62 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -alias( - name = "winapi_build", - actual = ":build", - tags = [ - "cargo-raze", - "manual", - ], -) - -rust_library( - name = "build", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.1.1", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/rust/raze/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/rust/raze/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel deleted file mode 100644 index 99f48838b..000000000 --- a/rust/raze/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel +++ /dev/null @@ -1,83 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "winapi_i686_pc_windows_gnu_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.4.0", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "winapi_i686_pc_windows_gnu", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.4.0", - # buildifier: leave-alone - deps = [ - ":winapi_i686_pc_windows_gnu_build_script", - ], -) diff --git a/rust/raze/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/rust/raze/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel deleted file mode 100644 index 3af9b6e0a..000000000 --- a/rust/raze/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel +++ /dev/null @@ -1,83 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "winapi_x86_64_pc_windows_gnu_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.4.0", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "winapi_x86_64_pc_windows_gnu", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.4.0", - # buildifier: leave-alone - deps = [ - ":winapi_x86_64_pc_windows_gnu_build_script", - ], -) diff --git a/rust/raze/remote/BUILD.ws2_32-sys-0.2.1.bazel b/rust/raze/remote/BUILD.ws2_32-sys-0.2.1.bazel deleted file mode 100644 index 2620030f2..000000000 --- a/rust/raze/remote/BUILD.ws2_32-sys-0.2.1.bazel +++ /dev/null @@ -1,94 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//rust/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "ws2_32_sys_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.2.1", - visibility = ["//visibility:private"], - deps = [ - "@raze__winapi_build__0_1_1//:winapi_build", - ], -) - -alias( - name = "ws2_32_sys", - actual = ":ws2_32", - tags = [ - "cargo-raze", - "manual", - ], -) - -rust_library( - name = "ws2_32", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.2.1", - # buildifier: leave-alone - deps = [ - ":ws2_32_sys_build_script", - "@raze__winapi__0_2_8//:winapi", - ], -) diff --git a/rust/repositories.bzl b/rust/repositories.bzl index c6778e981..4c11e1513 100644 --- a/rust/repositories.bzl +++ b/rust/repositories.bzl @@ -5,12 +5,7 @@ load( "rules_proto_grpc_repos", "rules_rust", ) -load( - "//rust/raze:crates.bzl", - "raze_fetch_remote_crates", -) def rust_repos(**kwargs): # buildifier: disable=function-docstring rules_proto_grpc_repos(**kwargs) rules_rust(**kwargs) - raze_fetch_remote_crates() diff --git a/rust/rust_fixer.bzl b/rust/rust_fixer.bzl new file mode 100644 index 000000000..f62de64ba --- /dev/null +++ b/rust/rust_fixer.bzl @@ -0,0 +1,57 @@ +"""Internal rules to fix up rust protoc output""" + +load("//:defs.bzl", "ProtoCompileInfo") + +def _rust_proto_crate_root(ctx): + name = ctx.attr.crate_dir + lib_rs = ctx.actions.declare_file("%s_lib.rs" % name) + ctx.actions.write( + lib_rs, + 'include!("%s/mod.rs");' % name, + False, + ) + return [DefaultInfo( + files = depset([lib_rs]), + )] + +def _rust_proto_crate_fixer(ctx): + """Fix up rust output, add include! for tonic/serde plugins""" + + compilation = ctx.attr.compilation[ProtoCompileInfo] + in_dir = compilation.output_dirs.to_list()[0] + out_dir = ctx.actions.declare_directory("%s_fixed" % compilation.label.name) + + ctx.actions.run( + outputs = [out_dir], + inputs = [in_dir], + executable = ctx.executable._script, + arguments = [in_dir.path, out_dir.path], + ) + + return [DefaultInfo( + files = depset([out_dir]), + )] + +rust_proto_crate_root = rule( + implementation = _rust_proto_crate_root, + attrs = { + "crate_dir": attr.string( + mandatory = True, + ), + }, +) + +rust_proto_crate_fixer = rule( + implementation = _rust_proto_crate_fixer, + attrs = { + "compilation": attr.label( + providers = [ProtoCompileInfo], + mandatory = True, + ), + "_script": attr.label( + executable = True, + cfg = "exec", + default = Label("//rust:rust_fixer"), + ), + }, +) diff --git a/rust/rust_fixer.sh b/rust/rust_fixer.sh new file mode 100755 index 000000000..274907e97 --- /dev/null +++ b/rust/rust_fixer.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -eo pipefail + +cp $1/* $2 +cd $2 +chmod +w * + +for base in $(ls | grep -v "^mod.rs$\|.serde.rs$\|.tonic.rs$"); do + for f in $(ls $(echo "$base" | sed 's/.rs$//').{serde,tonic}.rs 2>/dev/null); do + echo "include!(\"$f\");" >> $base; + done +done diff --git a/rust/rust_grpc_library.bzl b/rust/rust_grpc_library.bzl deleted file mode 100644 index 43f6e9d12..000000000 --- a/rust/rust_grpc_library.bzl +++ /dev/null @@ -1,46 +0,0 @@ -"""Generated definition of rust_grpc_library.""" - -load("//rust:rust_grpc_compile.bzl", "rust_grpc_compile") -load("//:defs.bzl", "bazel_build_rule_common_attrs", "proto_compile_attrs") -load("//rust:rust_proto_lib.bzl", "rust_proto_lib") -load("@rules_rust//rust:defs.bzl", "rust_library") - -def rust_grpc_library(name, **kwargs): # buildifier: disable=function-docstring - # Compile protos - name_pb = name + "_pb" - name_lib = name + "_lib" - rust_grpc_compile( - name = name_pb, - **{ - k: v - for (k, v) in kwargs.items() - if k in proto_compile_attrs.keys() or - k in bazel_build_rule_common_attrs - } # Forward args - ) - - # Create lib file - rust_proto_lib( - name = name_lib, - compilation = name_pb, - externs = ["protobuf", "grpc", "grpc_protobuf"], - ) - - # Create rust library - rust_library( - name = name, - srcs = [name_pb, name_lib], - deps = GRPC_DEPS + kwargs.get("deps", []), - **{ - k: v - for (k, v) in kwargs.items() - if k in bazel_build_rule_common_attrs - } # Forward Bazel common args - ) - -GRPC_DEPS = [ - Label("//rust/raze:futures"), - Label("//rust/raze:grpc"), - Label("//rust/raze:grpc_protobuf"), - Label("//rust/raze:protobuf"), -] diff --git a/rust/rust_grpc_compile.bzl b/rust/rust_prost_proto_compile.bzl similarity index 70% rename from rust/rust_grpc_compile.bzl rename to rust/rust_prost_proto_compile.bzl index 2d5cf6948..5e43b18fd 100644 --- a/rust/rust_grpc_compile.bzl +++ b/rust/rust_prost_proto_compile.bzl @@ -1,4 +1,4 @@ -"""Generated definition of rust_grpc_compile.""" +"""Generated definition of rust_prost_proto_compile.""" load( "//:defs.bzl", @@ -8,15 +8,15 @@ load( ) # Create compile rule -rust_grpc_compile = rule( +rust_prost_proto_compile = rule( implementation = proto_compile_impl, attrs = dict( proto_compile_attrs, _plugins = attr.label_list( providers = [ProtoPluginInfo], default = [ - Label("//rust:rust_plugin"), - Label("//rust:grpc_rust_plugin"), + Label("//rust:rust_prost_plugin"), + Label("//rust:rust_crate_plugin"), ], doc = "List of protoc plugins to apply", ), diff --git a/rust/rust_prost_proto_library.bzl b/rust/rust_prost_proto_library.bzl new file mode 100644 index 000000000..f1635c205 --- /dev/null +++ b/rust/rust_prost_proto_library.bzl @@ -0,0 +1,42 @@ +"""Generated definition of rust_prost_proto_library.""" + +load("//rust:rust_prost_proto_compile.bzl", "rust_prost_proto_compile") +load("//:defs.bzl", "bazel_build_rule_common_attrs", "proto_compile_attrs") +load("//rust:rust_fixer.bzl", "rust_proto_crate_fixer", "rust_proto_crate_root") # @unused +load("@rules_rust//rust:defs.bzl", "rust_library") + +def rust_prost_proto_library(name, **kwargs): # buildifier: disable=function-docstring + # Compile protos + name_pb = name + "_pb" + name_fixed = name_pb + "_fixed" + name_root = name + "_root" + rust_prost_proto_compile( + name = name_pb, + **{ + k: v + for (k, v) in kwargs.items() + if k in proto_compile_attrs.keys() or + k in bazel_build_rule_common_attrs + } # Forward args + ) + + rust_proto_crate_root( + name = name_root, + crate_dir = name_pb, + ) + + # Create rust_prost library + rust_library( + name = name, + edition = "2021", + crate_root = name_root, + crate_name = kwargs.get("crate_name"), + srcs = [name_pb], + deps = kwargs.get("prost_deps", [Label("//rust/crates:prost"), Label("//rust/crates:prost-types")]) + kwargs.get("deps", []), + proc_macro_deps = [kwargs.get("prost_derive_dep", Label("//rust/crates:prost-derive"))], + **{ + k: v + for (k, v) in kwargs.items() + if k in bazel_build_rule_common_attrs + } # Forward Bazel common args + ) diff --git a/rust/rust_proto_lib.bzl b/rust/rust_proto_lib.bzl deleted file mode 100644 index 414a74289..000000000 --- a/rust/rust_proto_lib.bzl +++ /dev/null @@ -1,47 +0,0 @@ -"""Rule to build a RustProtoLibInfo and lib.rs for generated proto sources.""" - -load("//:defs.bzl", "ProtoCompileInfo") - -def _strip_extension(f): - return f.basename[:-len(f.extension) - 1] - -def _rust_proto_lib_impl(ctx): - """Generate a lib.rs file for the crates.""" - compilation = ctx.attr.compilation[ProtoCompileInfo] - - # Add externs - content = [] - for extern in ctx.attr.externs: - content.append("extern crate {};".format(extern)) - content.append("") # Newline - - # List each output from protoc - srcs = [f for f in compilation.output_files.to_list()] - for f in srcs: - content.append("pub mod %s;" % _strip_extension(f)) - content.append("pub use %s::*;" % _strip_extension(f)) - - # Write file - lib_rs = ctx.actions.declare_file("%s/lib.rs" % compilation.label.name) - ctx.actions.write( - lib_rs, - "\n".join(content) + "\n", - False, - ) - - return [DefaultInfo( - files = depset([lib_rs]), - )] - -rust_proto_lib = rule( - implementation = _rust_proto_lib_impl, - attrs = { - "compilation": attr.label( - providers = [ProtoCompileInfo], - mandatory = True, - ), - "externs": attr.string_list( - mandatory = True, - ), - }, -) diff --git a/rust/rust_proto_library.bzl b/rust/rust_proto_library.bzl deleted file mode 100644 index 7dc186376..000000000 --- a/rust/rust_proto_library.bzl +++ /dev/null @@ -1,43 +0,0 @@ -"""Generated definition of rust_proto_library.""" - -load("//rust:rust_proto_compile.bzl", "rust_proto_compile") -load("//:defs.bzl", "bazel_build_rule_common_attrs", "proto_compile_attrs") -load("//rust:rust_proto_lib.bzl", "rust_proto_lib") -load("@rules_rust//rust:defs.bzl", "rust_library") - -def rust_proto_library(name, **kwargs): # buildifier: disable=function-docstring - # Compile protos - name_pb = name + "_pb" - name_lib = name + "_lib" - rust_proto_compile( - name = name_pb, - **{ - k: v - for (k, v) in kwargs.items() - if k in proto_compile_attrs.keys() or - k in bazel_build_rule_common_attrs - } # Forward args - ) - - # Create lib file - rust_proto_lib( - name = name_lib, - compilation = name_pb, - externs = ["protobuf"], - ) - - # Create rust library - rust_library( - name = name, - srcs = [name_pb, name_lib], - deps = PROTO_DEPS + kwargs.get("deps", []), - **{ - k: v - for (k, v) in kwargs.items() - if k in bazel_build_rule_common_attrs - } # Forward Bazel common args - ) - -PROTO_DEPS = [ - Label("//rust/raze:protobuf"), -] diff --git a/rust/rust_proto_compile.bzl b/rust/rust_tonic_grpc_compile.bzl similarity index 66% rename from rust/rust_proto_compile.bzl rename to rust/rust_tonic_grpc_compile.bzl index 89061e26f..f806a063d 100644 --- a/rust/rust_proto_compile.bzl +++ b/rust/rust_tonic_grpc_compile.bzl @@ -1,4 +1,4 @@ -"""Generated definition of rust_proto_compile.""" +"""Generated definition of rust_tonic_grpc_compile.""" load( "//:defs.bzl", @@ -8,14 +8,16 @@ load( ) # Create compile rule -rust_proto_compile = rule( +rust_tonic_grpc_compile = rule( implementation = proto_compile_impl, attrs = dict( proto_compile_attrs, _plugins = attr.label_list( providers = [ProtoPluginInfo], default = [ - Label("//rust:rust_plugin"), + Label("//rust:rust_prost_plugin"), + Label("//rust:rust_tonic_plugin"), + Label("//rust:rust_crate_plugin"), ], doc = "List of protoc plugins to apply", ), diff --git a/rust/rust_tonic_grpc_library.bzl b/rust/rust_tonic_grpc_library.bzl new file mode 100644 index 000000000..08ff353f1 --- /dev/null +++ b/rust/rust_tonic_grpc_library.bzl @@ -0,0 +1,50 @@ +"""Generated definition of rust_tonic_grpc_library.""" + +load("//rust:rust_tonic_grpc_compile.bzl", "rust_tonic_grpc_compile") +load("//:defs.bzl", "bazel_build_rule_common_attrs", "proto_compile_attrs") +load("//rust:rust_fixer.bzl", "rust_proto_crate_fixer", "rust_proto_crate_root") # @unused +load("@rules_rust//rust:defs.bzl", "rust_library") + +def rust_tonic_grpc_library(name, **kwargs): # buildifier: disable=function-docstring + # Compile protos + name_pb = name + "_pb" + name_fixed = name_pb + "_fixed" + name_root = name + "_root" + rust_tonic_grpc_compile( + name = name_pb, + **{ + k: v + for (k, v) in kwargs.items() + if k in proto_compile_attrs.keys() or + k in bazel_build_rule_common_attrs + } # Forward args + ) + + # fix up imports + rust_proto_crate_fixer( + name = name_fixed, + compilation = name_pb, + ) + + rust_proto_crate_root( + name = name_root, + crate_dir = name_fixed, + ) + + # Create rust_tonic library + rust_library( + name = name, + edition = "2021", + crate_root = name_root, + crate_name = kwargs.get("crate_name"), + srcs = [name_fixed], + deps = kwargs.get("prost_deps", [Label("//rust/crates:prost"), Label("//rust/crates:prost-types")]) + + [kwargs.get("tonic_dep", Label("//rust/crates:tonic"))] + + kwargs.get("deps", []), + proc_macro_deps = [kwargs.get("prost_derive_dep", Label("//rust/crates:prost-derive"))], + **{ + k: v + for (k, v) in kwargs.items() + if k in bazel_build_rule_common_attrs + } # Forward Bazel common args + ) diff --git a/tools/BUILD.bazel b/tools/BUILD.bazel index 24f8f34aa..ae5625507 100644 --- a/tools/BUILD.bazel +++ b/tools/BUILD.bazel @@ -5,4 +5,5 @@ buildifier( lint_mode = "warn", lint_warnings = [], mode = "fix", + visibility = ["//visibility:public"], ) diff --git a/tools/rulegen/rust.go b/tools/rulegen/rust.go index 22efca059..a0c1e774c 100644 --- a/tools/rulegen/rust.go +++ b/tools/rulegen/rust.go @@ -14,69 +14,73 @@ rules_rust_dependencies() rust_register_toolchains(edition = "2021")`) -var rustLibraryRuleTemplateString = `load("//{{ .Lang.Dir }}:{{ .Lang.Name }}_{{ .Rule.Kind }}_compile.bzl", "{{ .Lang.Name }}_{{ .Rule.Kind }}_compile") +var rustLibraryRuleTemplateString = `load("//{{ .Lang.Dir }}:{{ .Rule.Base }}_{{ .Rule.Kind }}_compile.bzl", "{{ .Rule.Base }}_{{ .Rule.Kind }}_compile") load("//:defs.bzl", "bazel_build_rule_common_attrs", "proto_compile_attrs") -load("//{{ .Lang.Dir }}:rust_proto_lib.bzl", "rust_proto_lib") +load("//{{ .Lang.Dir }}:rust_fixer.bzl", "rust_proto_crate_fixer", "rust_proto_crate_root") # @unused load("@rules_rust//rust:defs.bzl", "rust_library") def {{ .Rule.Name }}(name, **kwargs): # buildifier: disable=function-docstring # Compile protos name_pb = name + "_pb" - name_lib = name + "_lib" - {{ .Lang.Name }}_{{ .Rule.Kind }}_compile( + name_fixed = name_pb + "_fixed" + name_root = name + "_root" + {{ .Rule.Base }}_{{ .Rule.Kind }}_compile( name = name_pb, {{ .Common.CompileArgsForwardingSnippet }} ) ` -var rustProtoLibraryRuleTemplate = mustTemplate(rustLibraryRuleTemplateString + ` - # Create lib file - rust_proto_lib( - name = name_lib, - compilation = name_pb, - externs = ["protobuf"], +var rustProstProtoLibraryRuleTemplate = mustTemplate(rustLibraryRuleTemplateString + ` + rust_proto_crate_root( + name = name_root, + crate_dir = name_pb, ) - # Create {{ .Lang.Name }} library + # Create {{ .Rule.Base }} library rust_library( name = name, - srcs = [name_pb, name_lib], - deps = PROTO_DEPS + kwargs.get("deps", []), + edition = "2021", + crate_root = name_root, + crate_name = kwargs.get("crate_name"), + srcs = [name_pb], + deps = kwargs.get("prost_deps", [Label("//rust/crates:prost"), Label("//rust/crates:prost-types")]) + kwargs.get("deps", []), + proc_macro_deps = [kwargs.get("prost_derive_dep", Label("//rust/crates:prost-derive"))], {{ .Common.LibraryArgsForwardingSnippet }} ) +`) -PROTO_DEPS = [ - Label("//rust/raze:protobuf"), -]`) - -var rustGrpcLibraryRuleTemplate = mustTemplate(rustLibraryRuleTemplateString + ` - # Create lib file - rust_proto_lib( - name = name_lib, +var rustTonicGrpcLibraryRuleTemplate = mustTemplate(rustLibraryRuleTemplateString + ` + # fix up imports + rust_proto_crate_fixer( + name = name_fixed, compilation = name_pb, - externs = ["protobuf", "grpc", "grpc_protobuf"], ) - # Create {{ .Lang.Name }} library + rust_proto_crate_root( + name = name_root, + crate_dir = name_fixed, + ) + + # Create {{ .Rule.Base }} library rust_library( name = name, - srcs = [name_pb, name_lib], - deps = GRPC_DEPS + kwargs.get("deps", []), + edition = "2021", + crate_root = name_root, + crate_name = kwargs.get("crate_name"), + srcs = [name_fixed], + deps = kwargs.get("prost_deps", [Label("//rust/crates:prost"), Label("//rust/crates:prost-types")]) + + [kwargs.get("tonic_dep", Label("//rust/crates:tonic"))] + + kwargs.get("deps", []), + proc_macro_deps = [kwargs.get("prost_derive_dep", Label("//rust/crates:prost-derive"))], {{ .Common.LibraryArgsForwardingSnippet }} ) - -GRPC_DEPS = [ - Label("//rust/raze:futures"), - Label("//rust/raze:grpc"), - Label("//rust/raze:grpc_protobuf"), - Label("//rust/raze:protobuf"), -]`) +`) // For rust, produce one library for all protos, since they are all in the same crate var rustProtoLibraryExampleTemplate = mustTemplate(`load("@rules_proto_grpc//{{ .Lang.Dir }}:defs.bzl", "{{ .Rule.Name }}") {{ .Rule.Name }}( - name = "proto_{{ .Lang.Name }}_{{ .Rule.Kind }}", + name = "proto_{{ .Rule.Base }}_{{ .Rule.Kind }}", protos = [ "@rules_proto_grpc//example/proto:person_proto", "@rules_proto_grpc//example/proto:place_proto", @@ -87,59 +91,90 @@ var rustProtoLibraryExampleTemplate = mustTemplate(`load("@rules_proto_grpc//{{ var rustGrpcLibraryExampleTemplate = mustTemplate(`load("@rules_proto_grpc//{{ .Lang.Dir }}:defs.bzl", "{{ .Rule.Name }}") {{ .Rule.Name }}( - name = "greeter_{{ .Lang.Name }}_{{ .Rule.Kind }}", + name = "greeter_{{ .Rule.Base }}_{{ .Rule.Kind }}", protos = [ "@rules_proto_grpc//example/proto:greeter_grpc", "@rules_proto_grpc//example/proto:thing_proto", ], )`) +var rustProstLibraryRuleAttrs = append(append([]*Attr{}, libraryRuleAttrs...), []*Attr{ + &Attr{ + Name: "prost_deps", + Type: "label_list", + Default: `["//rust/crates:prost", "//rust/crates:prost-types"]`, + Doc: "The prost dependencies that the rust library should depend on.", + Mandatory: false, + }, + &Attr{ + Name: "prost_derive_dep", + Type: "label", + Default: `//rust/crates:prost-derive`, + Doc: "The prost-derive dependency that the rust library should depend on.", + Mandatory: false, + }, +}...) + +var rustTonicLibraryRuleAttrs = append(append([]*Attr{}, rustProstLibraryRuleAttrs...), []*Attr{ + &Attr{ + Name: "tonic_dep", + Type: "label", + Default: `//rust/crates:tonic`, + Doc: "The tonic dependency that the rust library should depend on.", + Mandatory: false, + }, +}...) + func makeRust() *Language { return &Language{ - Dir: "rust", - Name: "rust", - DisplayName: "Rust", - Notes: mustTemplate("Rules for generating Rust protobuf and gRPC ``.rs`` files and libraries using `rust-protobuf `_ and `grpc `_. Libraries are created with ``rust_library`` from `rules_rust `_."), - Flags: commonLangFlags, + Dir: "rust", + Name: "rust", + DisplayName: "Rust", + Notes: mustTemplate("Rules for generating Rust protobuf and gRPC ``.rs`` files and libraries using `prost `_ and `tonic `_. Libraries are created with ``rust_library`` from `rules_rust `_. Requires ``--experimental_proto_descriptor_sets_include_source_info`` to be set for the build."), + Flags: commonLangFlags, SkipTestPlatforms: []string{"windows", "macos"}, // CI has no rust toolchain for windows and is broken on mac Rules: []*Rule{ &Rule{ - Name: "rust_proto_compile", + Name: "rust_prost_proto_compile", + Base: "rust_prost", Kind: "proto", Implementation: compileRuleTemplate, - Plugins: []string{"//rust:rust_plugin"}, + Plugins: []string{"//rust:rust_prost_plugin", "//rust:rust_crate_plugin"}, WorkspaceExample: rustWorkspaceTemplate, BuildExample: protoCompileExampleTemplate, - Doc: "Generates Rust protobuf ``.rs`` files", + Doc: "Generates Rust protobuf ``.rs`` files using prost", Attrs: compileRuleAttrs, }, &Rule{ - Name: "rust_grpc_compile", + Name: "rust_tonic_grpc_compile", + Base: "rust_tonic", Kind: "grpc", Implementation: compileRuleTemplate, - Plugins: []string{"//rust:rust_plugin", "//rust:grpc_rust_plugin"}, + Plugins: []string{"//rust:rust_prost_plugin", "//rust:rust_tonic_plugin", "//rust:rust_crate_plugin"}, WorkspaceExample: rustWorkspaceTemplate, BuildExample: grpcCompileExampleTemplate, - Doc: "Generates Rust protobuf and gRPC ``.rs`` files", + Doc: "Generates Rust protobuf and gRPC ``.rs`` files using prost and tonic", Attrs: compileRuleAttrs, }, &Rule{ - Name: "rust_proto_library", + Name: "rust_prost_proto_library", + Base: "rust_prost", Kind: "proto", - Implementation: rustProtoLibraryRuleTemplate, + Implementation: rustProstProtoLibraryRuleTemplate, WorkspaceExample: rustWorkspaceTemplate, BuildExample: rustProtoLibraryExampleTemplate, - Doc: "Generates a Rust protobuf library using ``rust_library`` from ``rules_rust``", - Attrs: libraryRuleAttrs, + Doc: "Generates a Rust prost protobuf library using ``rust_library`` from ``rules_rust``", + Attrs: rustProstLibraryRuleAttrs, }, &Rule{ - Name: "rust_grpc_library", + Name: "rust_tonic_grpc_library", + Base: "rust_tonic", Kind: "grpc", - Implementation: rustGrpcLibraryRuleTemplate, + Implementation: rustTonicGrpcLibraryRuleTemplate, WorkspaceExample: rustWorkspaceTemplate, BuildExample: rustGrpcLibraryExampleTemplate, - Doc: "Generates a Rust protobuf and gRPC library using ``rust_library`` from ``rules_rust``", - Attrs: libraryRuleAttrs, + Doc: "Generates a Rust prost protobuf and tonic gRPC library using ``rust_library`` from ``rules_rust``", + Attrs: rustTonicLibraryRuleAttrs, }, }, }