refactor(ariadne): use conventional Cargo layout

This commit is contained in:
2026-09-05 19:58:01 -04:00
parent 91681b57b6
commit 3b1cca7303
5 changed files with 3 additions and 14 deletions

View File

@@ -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"],
) )

View File

@@ -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]