You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .devcontainer/README.md
+27-2Lines changed: 27 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ limitations under the License.
17
17
18
18
# NVIDIA Dynamo Development Environment
19
19
20
-
> Warning: devcontainers is an experimental feature and we are not testing in CI. Please submit any feedback using the issues on github.
20
+
> Warning: devcontainers is an experimental feature and we are not testing in CI. Please submit any feedback using the issues on GitHub.
21
21
22
22
## Prerequisites
23
23
-[Docker](https://docs.docker.com/get-started/get-docker/) installed and configured on your host system
@@ -51,7 +51,23 @@ Make sure HF_HOME is sourced in your .bashrc or .zshenv and your vscode default
51
51
- The container will mount your local code
52
52
-`post-create.sh` will build the project and configure the environment
53
53
54
-
If `post-create.sh` fails, you can try to debug or [submit](https://github.com/ai-dynamo/dynamo/issues) an issue on github.
54
+
If `post-create.sh` fails, you can try to debug or [submit](https://github.com/ai-dynamo/dynamo/issues) an issue on GitHub.
55
+
56
+
## Development Flow
57
+
58
+
If you make changes to Rust code and want to compile, use [cargo build](https://doc.rust-lang.org/cargo/commands/cargo-build.html). This will update Rust binaries such as dynamo-run.
59
+
60
+
```bash
61
+
cd /home/ubuntu/dynamo && cargo build --locked --profile dev
62
+
```
63
+
64
+
Before pushing code to GitHub, remember to run `cargo fmt` and `cargo clippy`
65
+
66
+
If you make changes to Rust code and want to propagate to Python bindings then can use [maturin](https://www.maturin.rs/#usage) (pre-installed). This will update the Python bindings with your new Rust changes.
67
+
68
+
```bash
69
+
cd /home/ubuntu/dynamo/lib/bindings/python && maturin develop
70
+
```
55
71
56
72
## What's Inside
57
73
Development Environment:
@@ -80,6 +96,15 @@ Edit `.devcontainer/devcontainer.json` to modify:
0 commit comments