Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

Missing instructions for building with local Servo repo #76

Open
userzimmermann opened this issue Jul 13, 2018 · 1 comment
Open

Missing instructions for building with local Servo repo #76

userzimmermann opened this issue Jul 13, 2018 · 1 comment

Comments

@userzimmermann
Copy link

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" }

(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?

@paulrouget
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants