forked from facebook/buck2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrust-project.sh
More file actions
executable file
·21 lines (17 loc) · 877 Bytes
/
rust-project.sh
File metadata and controls
executable file
·21 lines (17 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is dual-licensed under either the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree or the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree. You may select, at your option, one of the
# above-listed licenses.
# This script is used to generate rust-project.json when using internal rust-analyzer
# on internal VSCode on devserver/OD.
# If this is not working, make sure your VSCode's root workspace is open at fbsource.
# Check out the full wiki guide at https://www.internalfb.com/intern/wiki/Rust-at-meta/rust-project/
# Fail if we have any errors
set -e
# Change to this directory
cd -- "$(dirname -- "$0")"
arc rust-project develop fbcode//buck2:buck2 --out ../../rust-project.json