Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Part of the Crubit project, under the Apache License v2.0 with LLVM
# Exceptions. See /LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

# This directory is built as its own module.
crubit_explorer
49 changes: 49 additions & 0 deletions crubit_explorer/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Part of the Crubit project, under the Apache License v2.0 with LLVM
# Exceptions. See /LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

load("@rules_license//rules:license.bzl", "license")
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_test")

package(
default_applicable_licenses = [":license"],
default_visibility = ["//visibility:private"],
)

license(
name = "license",
package_name = "crubit_explorer",
)

rust_binary(
name = "server",
srcs = ["src/main.rs"],
edition = "2024",
visibility = ["//visibility:public"],
deps = [
"@crate_index//:axum", # v0_8
"@crate_index//:base64", # v0_22
"@crate_index//:serde", # v1
"@crate_index//:serde_json", # v1
"@crate_index//:tempfile", # v3
"@crate_index//:tokio", # v1
"@crate_index//:tower-http",
],
)

rust_test(
name = "server_test",
size = "small",
srcs = ["src/main.rs"],
edition = "2024",
deps = [
"@crate_index//:axum", # v0_8
"@crate_index//:base64", # v0_22
"@crate_index//:serde", # v1
"@crate_index//:serde_json", # v1
"@crate_index//:tempfile", # v3
"@crate_index//:tokio", # v1
"@crate_index//:tower", # v0_5
"@crate_index//:tower-http",
],
)
Loading