Skip to content

Commit f58bb31

Browse files
authored
Update devcontainer configuration (#108)
1 parent 2c2d96e commit f58bb31

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
{
22
"name": "Dissect",
33
"image": "ghcr.io/fox-it/dissect-devcontainer",
4-
"postCreateCommand": "pip3 install --user --editable . --config-settings editable_mode=compat"
4+
"postCreateCommand": "uv sync",
5+
56
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
6-
// "remoteUser": "root"
7+
// "remoteUser": "root",
8+
9+
"customizations": {
10+
"vscode": {
11+
"settings": {
12+
"rust-analyzer.linkedProjects": [
13+
"dissect/util/_native.src/Cargo.toml"
14+
]
15+
}
16+
}
17+
}
718
}

tox.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ requires = virtualenv>=20.24.6
1414
[pkgenv]
1515
config_settings_get_requires_for_build_wheel = --build-rust=1
1616
config_settings_build_wheel = --build-option=--py-limited-api=cp310
17+
passenv =
18+
RUSTUP_HOME
1719

1820
[testenv]
1921
deps =
@@ -50,6 +52,8 @@ commands =
5052
[testenv:build-native]
5153
package = skip
5254
dependency_groups = build
55+
passenv =
56+
RUSTUP_HOME
5357
commands =
5458
pyproject-build --wheel --config-setting=--build-rust --config-setting=--build-option=--py-limited-api=cp310
5559

@@ -59,6 +63,8 @@ deps =
5963
setuptools
6064
setuptools-scm
6165
setuptools-rust
66+
passenv =
67+
RUSTUP_HOME
6268
commands =
6369
python -c "from setuptools import setup; setup()" build_rust --inplace
6470

0 commit comments

Comments
 (0)