refactor(ariadne): use conventional Cargo layout
This commit is contained in:
@@ -3,19 +3,19 @@ load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", "rust_test")
|
|||||||
rust_library(
|
rust_library(
|
||||||
name = "ariadne_lib",
|
name = "ariadne_lib",
|
||||||
crate_name = "ariadne",
|
crate_name = "ariadne",
|
||||||
srcs = ["lib.rs"],
|
srcs = ["src/lib.rs"],
|
||||||
)
|
)
|
||||||
|
|
||||||
rust_test(
|
rust_test(
|
||||||
name = "ariadne_lib_test",
|
name = "ariadne_lib_test",
|
||||||
srcs = ["lib_test.rs"],
|
srcs = ["tests/lib.rs"],
|
||||||
deps = [":ariadne_lib"],
|
deps = [":ariadne_lib"],
|
||||||
)
|
)
|
||||||
|
|
||||||
rust_binary(
|
rust_binary(
|
||||||
name = "ariadne",
|
name = "ariadne",
|
||||||
crate_name = "ariadne_cli",
|
crate_name = "ariadne_cli",
|
||||||
srcs = ["main.rs"],
|
srcs = ["src/main.rs"],
|
||||||
deps = [":ariadne_lib"],
|
deps = [":ariadne_lib"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -3,15 +3,4 @@ name = "ariadne"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[lib]
|
|
||||||
path = "lib.rs"
|
|
||||||
|
|
||||||
[[bin]]
|
|
||||||
name = "ariadne"
|
|
||||||
path = "main.rs"
|
|
||||||
|
|
||||||
[[test]]
|
|
||||||
name = "lib_test"
|
|
||||||
path = "lib_test.rs"
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
Reference in New Issue
Block a user