Comments (7)
Did some digging. This, too, is related to the fact that I'm building a library crate. Cargo-web indicates that &last_build.target.source_directory
is $crate_root/src/bin, not $crate_root/src.
I can probably refactor this crate from lib to bin I built it initially not knowing whether I could build all my native dependencies in Emscripten, so thinking I might need JNI. Still, though, might be good to fix this. I don't know if there's a struct member that points at $crate_root/src, but that's probably a better candidate for watching.
Thanks.
from cargo-web.
Wait... how did you do that? The start
command explicitly looks for a bin
crate and refuses to start when it doesn't find one.
from cargo-web.
from cargo-web.
Ah yes, now I understand the problem! What you have is a hybrid lib
/bin
crate, and it only monitors the bin
part while the lib
part is implicitly used.
I'll fix it.
from cargo-web.
This should be fixed now on master
. As a bonus I've added tracking of dependencies and support for modifying Cargo.toml
.
Can you try it out and tell me if it works for you?
from cargo-web.
from cargo-web.
I think this should be fixed now, so closing! If you'll have any further problems feel free to create a new issue.
from cargo-web.
Related Issues (20)
- Update Emscripten support HOT 2
- cargo web build ignores dependency features HOT 1
- cargo web start for single page applications
- https support?
- Error when installing
- cargo-web tet fails, no .js file found HOT 5
- Option to include the wasm file content into the generated .js runtime?
- cargo web uses color even when not supported
- cli: expose option use_system_emscripten - and/or allow to use cached download HOT 1
- Cargo panic when running web build HOT 6
- thread 'main' panicked at 'unknown name section chunk type: 7' HOT 13
- cargo web build does not have the default html shell in the build folder
- cargo web start does not correctly serve the sourcemap
- cargo web doesn't serve or deploy Emscripten .data files
- Cash on cargo web build in WSL HOT 1
- Cargo web redownloads emscripten
- error: usage of `--profile` requires `-Z unstable-options`
- Maintenance status HOT 2
- cargo-web 0.6.26 rustc 1.60 [Release flag is ignored] HOT 1
- Installation instruction for precompiled binaries no longer works
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-web.