File tree 4 files changed +215
-201
lines changed
4 files changed +215
-201
lines changed Original file line number Diff line number Diff line change @@ -160,10 +160,8 @@ selenium_register_dotnet()
160
160
161
161
http_archive (
162
162
name = "rules_rust" ,
163
- sha256 = "dd79bd4e2e2adabae738c5e93c36d351cf18071ff2acf6590190acf4138984f6" ,
164
- urls = [
165
- "https://github.com/bazelbuild/rules_rust/releases/download/0.14.0/rules_rust-v0.14.0.tar.gz" ,
166
- ],
163
+ sha256 = "5c2b6745236f8ce547f82eeacbbcc81d736734cc8bd92e60d3e3cdfa6e167bb5" ,
164
+ urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.15.0/rules_rust-v0.15.0.tar.gz" ],
167
165
)
168
166
169
167
load ("@rules_rust//rust:repositories.bzl" , "rules_rust_dependencies" , "rust_register_toolchains" )
@@ -237,11 +235,11 @@ http_archive(
237
235
patches = [
238
236
"//py:rules_pkg_tree.patch" ,
239
237
],
238
+ sha256 = "eea0f59c28a9241156a47d7a8e32db9122f3d50b505fae0f33de6ce4d9b61834" ,
240
239
urls = [
241
240
"https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.8.0/rules_pkg-0.8.0.tar.gz" ,
242
241
"https://github.com/bazelbuild/rules_pkg/releases/download/0.8.0/rules_pkg-0.8.0.tar.gz" ,
243
242
],
244
- sha256 = "eea0f59c28a9241156a47d7a8e32db9122f3d50b505fae0f33de6ce4d9b61834" ,
245
243
)
246
244
247
245
load ("@rules_pkg//:deps.bzl" , "rules_pkg_dependencies" )
Original file line number Diff line number Diff line change 1
1
load ("@crates//:defs.bzl" , "all_crate_deps" )
2
- load ("@rules_rust//rust:defs.bzl" , "rust_binary" )
2
+ load ("@rules_rust//rust:defs.bzl" , "rust_binary" , "rust_library" )
3
3
4
4
rust_binary (
5
+ # Yes, this name is very similar to the library. Note the dash
6
+ # instead of an underscore
5
7
name = "selenium-manager" ,
6
- srcs = glob (["src/**/*.rs" ]),
7
- edition = "2018" ,
8
+ srcs = ["src/main.rs" ],
9
+ edition = "2021" ,
10
+ visibility = ["//visibility:public" ],
11
+ deps = [
12
+ ":selenium_manager" ,
13
+ ] + all_crate_deps (normal = True ),
14
+ )
15
+
16
+ rust_library (
17
+ # The name here is used as the crate name
18
+ name = "selenium_manager" ,
19
+ srcs = glob (
20
+ ["src/**/*.rs" ],
21
+ exclude = ["main.rs" ],
22
+ ),
23
+ edition = "2021" ,
8
24
deps = all_crate_deps (normal = True ),
9
25
)
You can’t perform that action at this time.
0 commit comments