You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @milindjain0. Are you familiar with GitHub’s pull request workflow?
After cloning this repository, you can run cargo build to compile everything. You should see the same warnings as above. Then change the code until you can compile without warnings, and send a pull request.
For the unused macros, double check that they don’t have a #[macro_export] attribute above them. This would make them available to users outside the crate, in which case we wouldn’t want to remove them. But I think the warning wouldn’t be shown in that case. You should be able to remove these two macros and have everything still compile.
As to the variable that doesn’t need to be mutable, the warning itself suggests a fix: removing mut in for mut attr in tag.attrs.iter_mut().
Feel free to ask any question here on on the #servo channel on Mozilla IRC.
@milindjain0 You shouldn't be using mach for this issue, let alone this repository. What you need to do is clone html5ever, cd into it and run cargo build as @SimonSapin has outlined above.
@KiChjang I cloned html5ever and tried cargo build but I am getting no command found I have not installed rust and cargo currently How do I know the version which needs to be installed?
Since I was able to build using ./mach build -d. Rust would have been installed
Can you let me know what is the default location in Mac?
Activity
milindjain0 commentedon Oct 19, 2017
I would like to work on this. I am new to this and help from a mentor for getting started would be appreciated.
Thanks
SimonSapin commentedon Oct 19, 2017
Hi @milindjain0. Are you familiar with GitHub’s pull request workflow?
After cloning this repository, you can run
cargo buildto compile everything. You should see the same warnings as above. Then change the code until you can compile without warnings, and send a pull request.For the unused macros, double check that they don’t have a
#[macro_export]attribute above them. This would make them available to users outside the crate, in which case we wouldn’t want to remove them. But I think the warning wouldn’t be shown in that case. You should be able to remove these two macros and have everything still compile.As to the variable that doesn’t need to be mutable, the warning itself suggests a fix: removing
mutinfor mut attr in tag.attrs.iter_mut().Feel free to ask any question here on on the
#servochannel on Mozilla IRC.milindjain0 commentedon Oct 21, 2017
Hi,
I was able to build the code using ./mach build -d and run using ./mach run ...
I am not able to use cargo
Do I need to set environment variables for using Cargo?
And durring ./mach build -d I did not get any warning
Thanks
KiChjang commentedon Oct 21, 2017
@milindjain0 You shouldn't be using mach for this issue, let alone this repository. What you need to do is clone html5ever, cd into it and run
cargo buildas @SimonSapin has outlined above.milindjain0 commentedon Oct 21, 2017
@KiChjang I cloned html5ever and tried
cargo buildbut I am getting no command found I have not installed rust and cargo currently How do I know the version which needs to be installed?Since I was able to build using ./mach build -d. Rust would have been installed
Can you let me know what is the default location in Mac?
Thanks
jdm commentedon Oct 21, 2017
@milindjain0 Servo's build system installs a very specific version of rust in a particular place. I recommend following the regular Rust installation steps at https://www.rust-lang.org/en-US/install.html.
milindjain0 commentedon Oct 21, 2017
@jdm @KiChjang @SimonSapin Thanks Everything is working fine now!
duxum commentedon Oct 23, 2017
Was playing with this and I did as @SimonSapin wrote, and there are no longer warnings. Should I go ahead and PR.
Thanks,
KiChjang commentedon Oct 23, 2017
@duxum Sorry, but isn't @milindjain0 already working on this issue?
duxum commentedon Oct 23, 2017
@KiChjang Okay, no problem. However, I guess a tag that it is assigned should be added.
Fix warnings in xml5ever servo#315
milindjain0 commentedon Oct 24, 2017
@KiChjang @SimonSapin @jdm I have made a PR after making the changes to remove the warning and
cargo buildis workingAuto merge of #319 - milindjain0:milindjain1, r=jdm
milindjain0 commentedon Oct 24, 2017
@jdm @KiChjang @SimonSapin Can you suggest some other issue to work on or some feature?