Skip to content

Commit 24d908e

Browse files
committed
Add a Cargo workspace
We're about to add several other crates to this repository, so let's make room for them!
1 parent ee8ecb0 commit 24d908e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+76
-46
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ jobs:
4646
- name: Run test suite
4747
run: cargo test
4848
- name: Run test suite under valgrind
49-
run: cargo valgrind test
49+
# We only need to use valgrind to test the crates that have C bindings.
50+
run: cargo valgrind test -p stack-graphs
5051
- name: Run test suite with copious debugging
5152
run: cargo test --features copious-debugging
5253
- name: Run test suite with all optimizations

Cargo.toml

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,4 @@
1-
[package]
2-
name = "stack-graphs"
3-
version = "0.3.0"
4-
description = "Name binding for arbitrary programming languages"
5-
homepage = "https://github.com/github/stack-graphs/"
6-
repository = "https://github.com/github/stack-graphs/"
7-
readme = "README.md"
8-
license = "MIT OR Apache-2.0"
9-
authors = [
10-
"GitHub <[email protected]>",
11-
"Douglas Creager <[email protected]>"
1+
[workspace]
2+
members = [
3+
"stack-graphs",
124
]
13-
edition = "2018"
14-
15-
[features]
16-
copious-debugging = []
17-
18-
[lib]
19-
# All of our tests are in the tests/it "integration" test executable.
20-
test = false
21-
22-
[dependencies]
23-
controlled-option = "0.4"
24-
either = "1.6"
25-
fxhash = "0.2"
26-
libc = "0.2"
27-
smallvec = { version="1.6", features=["union"] }
28-
29-
[dev-dependencies]
30-
itertools = "0.10"
31-
maplit = "1.0"
32-
pretty_assertions = "0.7"

README.md

Lines changed: 3 additions & 13 deletions

script/cbindgen

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# ------------------------------------------------------------------------------
99

1010
set -e
11-
cd "$(dirname "$0")/.."
11+
cd "$(dirname "$0")/../stack-graphs"
1212

1313
if ! which cbindgen >/dev/null 2>/dev/null; then
1414
echo "Cannot find cbindgen! Try `cargo install cbindgen`." >&2

stack-graphs/Cargo.toml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[package]
2+
name = "stack-graphs"
3+
version = "0.3.0"
4+
description = "Name binding for arbitrary programming languages"
5+
homepage = "https://github.com/github/stack-graphs/"
6+
repository = "https://github.com/github/stack-graphs/"
7+
readme = "README.md"
8+
license = "MIT OR Apache-2.0"
9+
authors = [
10+
"GitHub <[email protected]>",
11+
"Douglas Creager <[email protected]>"
12+
]
13+
edition = "2018"
14+
15+
[features]
16+
copious-debugging = []
17+
18+
[lib]
19+
# All of our tests are in the tests/it "integration" test executable.
20+
test = false
21+
22+
[dependencies]
23+
controlled-option = "0.4"
24+
either = "1.6"
25+
fxhash = "0.2"
26+
libc = "0.2"
27+
smallvec = { version="1.6", features=["union"] }
28+
29+
[dev-dependencies]
30+
itertools = "0.10"
31+
maplit = "1.0"
32+
pretty_assertions = "0.7"

stack-graphs/README.md

Lines changed: 35 additions & 0 deletions
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)