Skip to content

Commit b9b7850

Browse files
committed
remove grpc example
1 parent 2adf4b3 commit b9b7850

24 files changed

+2
-1316
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ jobs:
8888

8989
- name: Update Rust
9090
run: |
91-
sudo apt install -y protobuf-compiler
9291
rustup toolchain install stable --component clippy --component rustfmt
9392
rustup target add wasm32-unknown-unknown
9493
rustup target add wasm32-wasi
@@ -133,7 +132,7 @@ jobs:
133132
run: cargo doc --no-deps --target=wasm32-unknown-unknown
134133

135134
- name: Package (publish)
136-
run: cargo publish --dry-run --target=wasm32-unknown-unknown --no-verify
135+
run: cargo publish --dry-run --target=wasm32-unknown-unknown
137136

138137
nightly:
139138
runs-on: ubuntu-latest
@@ -143,7 +142,6 @@ jobs:
143142

144143
- name: Update Rust
145144
run: |
146-
sudo apt install -y protobuf-compiler
147145
rustup toolchain install nightly --component clippy --component rustfmt
148146
rustup +nightly target add wasm32-unknown-unknown
149147
rustup +nightly target add wasm32-wasi
@@ -189,7 +187,7 @@ jobs:
189187
run: cargo doc --no-deps --target=wasm32-unknown-unknown
190188

191189
- name: Package (publish)
192-
run: cargo publish --dry-run --target=wasm32-unknown-unknown --no-verify
190+
run: cargo publish --dry-run --target=wasm32-unknown-unknown
193191

194192
outdated:
195193
runs-on: ubuntu-latest

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
/bazel-*
22
/target
33
/Cargo.lock
4-
5-
# generated Proto codes
6-
examples/grpc_call/helloworld.rs

Cargo.toml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ wee_alloc = { version = "0.4", optional = true }
1919
[dev-dependencies]
2020
cfg-if = "1.0"
2121
chrono = "0.4"
22-
protobuf = "2"
23-
24-
[build-dependencies]
25-
protoc-rust = "2.0"
2622

2723
[target.'cfg(not(all(target_arch = "wasm32", target_os = "unknown")))'.dev-dependencies]
2824
getrandom = "0.2"
@@ -61,8 +57,3 @@ crate-type = ["cdylib"]
6157
name = "http_config"
6258
path = "examples/http_config.rs"
6359
crate-type = ["cdylib"]
64-
65-
[[example]]
66-
name = "grpc_call"
67-
path = "examples/grpc_call/main.rs"
68-
crate-type = ["cdylib"]

bazel/cargo/BUILD.bazel

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,6 @@ alias(
5757
],
5858
)
5959

60-
alias(
61-
name = "protobuf",
62-
actual = "@raze__protobuf__2_22_1//:protobuf",
63-
tags = [
64-
"cargo-raze",
65-
"manual",
66-
],
67-
)
68-
6960
# Export file for Stardoc support
7061
exports_files(
7162
[

bazel/cargo/crates.bzl

Lines changed: 0 additions & 135 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@ def raze_fetch_remote_crates():
3131
build_file = Label("//bazel/cargo/remote:BUILD.autocfg-1.0.1.bazel"),
3232
)
3333

34-
maybe(
35-
http_archive,
36-
name = "raze__bitflags__1_2_1",
37-
url = "https://crates.io/api/v1/crates/bitflags/1.2.1/download",
38-
type = "tar.gz",
39-
strip_prefix = "bitflags-1.2.1",
40-
build_file = Label("//bazel/cargo/remote:BUILD.bitflags-1.2.1.bazel"),
41-
)
42-
4334
maybe(
4435
http_archive,
4536
name = "raze__cfg_if__1_0_0",
@@ -60,15 +51,6 @@ def raze_fetch_remote_crates():
6051
build_file = Label("//bazel/cargo/remote:BUILD.chrono-0.4.19.bazel"),
6152
)
6253

63-
maybe(
64-
http_archive,
65-
name = "raze__either__1_6_1",
66-
url = "https://crates.io/api/v1/crates/either/1.6.1/download",
67-
type = "tar.gz",
68-
strip_prefix = "either-1.6.1",
69-
build_file = Label("//bazel/cargo/remote:BUILD.either-1.6.1.bazel"),
70-
)
71-
7254
maybe(
7355
http_archive,
7456
name = "raze__getrandom__0_2_2",
@@ -139,114 +121,6 @@ def raze_fetch_remote_crates():
139121
build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.7.2.bazel"),
140122
)
141123

142-
maybe(
143-
http_archive,
144-
name = "raze__ppv_lite86__0_2_10",
145-
url = "https://crates.io/api/v1/crates/ppv-lite86/0.2.10/download",
146-
type = "tar.gz",
147-
strip_prefix = "ppv-lite86-0.2.10",
148-
build_file = Label("//bazel/cargo/remote:BUILD.ppv-lite86-0.2.10.bazel"),
149-
)
150-
151-
maybe(
152-
http_archive,
153-
name = "raze__protobuf__2_22_1",
154-
url = "https://crates.io/api/v1/crates/protobuf/2.22.1/download",
155-
type = "tar.gz",
156-
strip_prefix = "protobuf-2.22.1",
157-
build_file = Label("//bazel/cargo/remote:BUILD.protobuf-2.22.1.bazel"),
158-
)
159-
160-
maybe(
161-
http_archive,
162-
name = "raze__protobuf_codegen__2_22_1",
163-
url = "https://crates.io/api/v1/crates/protobuf-codegen/2.22.1/download",
164-
type = "tar.gz",
165-
strip_prefix = "protobuf-codegen-2.22.1",
166-
build_file = Label("//bazel/cargo/remote:BUILD.protobuf-codegen-2.22.1.bazel"),
167-
)
168-
169-
maybe(
170-
http_archive,
171-
name = "raze__protoc__2_22_1",
172-
url = "https://crates.io/api/v1/crates/protoc/2.22.1/download",
173-
type = "tar.gz",
174-
strip_prefix = "protoc-2.22.1",
175-
build_file = Label("//bazel/cargo/remote:BUILD.protoc-2.22.1.bazel"),
176-
)
177-
178-
maybe(
179-
http_archive,
180-
name = "raze__protoc_rust__2_22_1",
181-
url = "https://crates.io/api/v1/crates/protoc-rust/2.22.1/download",
182-
type = "tar.gz",
183-
strip_prefix = "protoc-rust-2.22.1",
184-
build_file = Label("//bazel/cargo/remote:BUILD.protoc-rust-2.22.1.bazel"),
185-
)
186-
187-
maybe(
188-
http_archive,
189-
name = "raze__rand__0_8_3",
190-
url = "https://crates.io/api/v1/crates/rand/0.8.3/download",
191-
type = "tar.gz",
192-
strip_prefix = "rand-0.8.3",
193-
build_file = Label("//bazel/cargo/remote:BUILD.rand-0.8.3.bazel"),
194-
)
195-
196-
maybe(
197-
http_archive,
198-
name = "raze__rand_chacha__0_3_0",
199-
url = "https://crates.io/api/v1/crates/rand_chacha/0.3.0/download",
200-
type = "tar.gz",
201-
strip_prefix = "rand_chacha-0.3.0",
202-
build_file = Label("//bazel/cargo/remote:BUILD.rand_chacha-0.3.0.bazel"),
203-
)
204-
205-
maybe(
206-
http_archive,
207-
name = "raze__rand_core__0_6_2",
208-
url = "https://crates.io/api/v1/crates/rand_core/0.6.2/download",
209-
type = "tar.gz",
210-
strip_prefix = "rand_core-0.6.2",
211-
build_file = Label("//bazel/cargo/remote:BUILD.rand_core-0.6.2.bazel"),
212-
)
213-
214-
maybe(
215-
http_archive,
216-
name = "raze__rand_hc__0_3_0",
217-
url = "https://crates.io/api/v1/crates/rand_hc/0.3.0/download",
218-
type = "tar.gz",
219-
strip_prefix = "rand_hc-0.3.0",
220-
build_file = Label("//bazel/cargo/remote:BUILD.rand_hc-0.3.0.bazel"),
221-
)
222-
223-
maybe(
224-
http_archive,
225-
name = "raze__redox_syscall__0_2_5",
226-
url = "https://crates.io/api/v1/crates/redox_syscall/0.2.5/download",
227-
type = "tar.gz",
228-
strip_prefix = "redox_syscall-0.2.5",
229-
build_file = Label("//bazel/cargo/remote:BUILD.redox_syscall-0.2.5.bazel"),
230-
)
231-
232-
maybe(
233-
http_archive,
234-
name = "raze__remove_dir_all__0_5_3",
235-
url = "https://crates.io/api/v1/crates/remove_dir_all/0.5.3/download",
236-
type = "tar.gz",
237-
strip_prefix = "remove_dir_all-0.5.3",
238-
build_file = Label("//bazel/cargo/remote:BUILD.remove_dir_all-0.5.3.bazel"),
239-
)
240-
241-
maybe(
242-
http_archive,
243-
name = "raze__tempfile__3_2_0",
244-
url = "https://crates.io/api/v1/crates/tempfile/3.2.0/download",
245-
type = "tar.gz",
246-
strip_prefix = "tempfile-3.2.0",
247-
build_file = Label("//bazel/cargo/remote:BUILD.tempfile-3.2.0.bazel"),
248-
)
249-
250124
maybe(
251125
http_archive,
252126
name = "raze__time__0_1_43",
@@ -277,15 +151,6 @@ def raze_fetch_remote_crates():
277151
build_file = Label("//bazel/cargo/remote:BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel"),
278152
)
279153

280-
maybe(
281-
http_archive,
282-
name = "raze__which__4_1_0",
283-
url = "https://crates.io/api/v1/crates/which/4.1.0/download",
284-
type = "tar.gz",
285-
strip_prefix = "which-4.1.0",
286-
build_file = Label("//bazel/cargo/remote:BUILD.which-4.1.0.bazel"),
287-
)
288-
289154
maybe(
290155
http_archive,
291156
name = "raze__winapi__0_3_9",

bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel

Lines changed: 0 additions & 85 deletions
This file was deleted.

bazel/cargo/remote/BUILD.either-1.6.1.bazel

Lines changed: 0 additions & 55 deletions
This file was deleted.

bazel/cargo/remote/BUILD.getrandom-0.2.2.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ cargo_build_script(
4242
build_script_env = {
4343
},
4444
crate_features = [
45-
"std",
4645
],
4746
crate_root = "build.rs",
4847
data = glob(["**"]),
@@ -104,7 +103,6 @@ rust_library(
104103
aliases = {
105104
},
106105
crate_features = [
107-
"std",
108106
],
109107
crate_root = "src/lib.rs",
110108
crate_type = "lib",

0 commit comments

Comments
 (0)