Skip to content

Commit

Permalink
[IDX-2435] bazel: generate rust-project.json
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-kashitsyn authored and Enzo Desiage committed Mar 7, 2023
1 parent 9a22746 commit d95ac74
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ rs/.cargo-home
# These are backup files generated by rustfmt
**/*.rs.bk

# The configuration file that bazel generates for rust-analyzer.
rust-project.json

# These are files generated by proptest
**/*.proptest-regressions
**/proptest-regressions
Expand Down
5 changes: 5 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ alias(
actual = "@rules_rust//:rustfmt",
)

alias(
name = "gen_rust_project",
actual = "@rules_rust//tools/rust_analyzer:gen_rust_project",
)

# See https://github.com/bazelbuild/bazel-gazelle#running-gazelle-with-bazel
# gazelle:prefix github.com/dfinity/ic
# gazelle:proto disable
Expand Down
3 changes: 3 additions & 0 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,12 @@ git_repository(
)

load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains")
load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies")

rules_rust_dependencies()

rust_analyzer_dependencies()

rust_register_toolchains(
edition = "2021",
version = "1.66.1",
Expand Down

0 comments on commit d95ac74

Please sign in to comment.