Commit 5c2dfd1
wangnaihe
fix: replace w3cos-build with workspace demo crate for reliable Docker builds
The `w3cos build` command creates temp cargo projects which fail in Docker
(Exec format error, path resolution issues). Instead, pre-generate the
showcase Rust code as a proper workspace member `w3cos-demo` that compiles
directly with `cargo build -p w3cos-demo`.
- Add crates/w3cos-demo/ with pre-generated showcase main.rs
- Simplify HF Space Dockerfile to use cargo build directly
- Update start.sh to use w3cos-demo binary
Made-with: Cursor1 parent 0cb29e5 commit 5c2dfd1
File tree
6 files changed
+688
-23
lines changed- crates/w3cos-demo
- src
- demo
- hf-space
6 files changed
+688
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments