servoshell
servoshell copied to clipboard
Missing instructions for building with local Servo repo
Hi :) I'm new to Rust, but so far I managed to build Servo (on Windows), and after some failed attempts I figured out how to build ServoShell using my Servo clone as local requirement, by changing:
+++ b/Cargo.toml
...
-libservo = { git = "https://github.com/servo/servo", rev = "989d2fd532" }
+libservo = { path = "../engine/components/servo" }
- https://github.com/servo/servo in
...\Projects\servo\engine
- ServoShell in
...\Projects\servo\shell
(Directly building w/cargo build
instead of using mach
)
Is there some less intrusive way for defining the local Servo dependency (w/o the need to make changes to tracked files like Cargo.toml
)? And could you please briefly explain the preferred way in your README?
You can add this to Cargo.toml:
[patch."https://github.com/servo/servo"]
libservo = { path = "/path/to/local/checkout" }
Haven't tried, but that should do it.