servoshell icon indicating copy to clipboard operation
servoshell copied to clipboard

Missing instructions for building with local Servo repo

Open userzimmermann opened this issue 6 years ago • 1 comments

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?

userzimmermann avatar Jul 13 '18 16:07 userzimmermann

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.

paulrouget avatar Jul 17 '18 06:07 paulrouget