geckodriver icon indicating copy to clipboard operation
geckodriver copied to clipboard

Publish geckodriver itself on crates.io

Open vext01 opened this issue 4 years ago • 5 comments

Sorry to raise a new issue, but the comments were locked on https://github.com/mozilla/geckodriver/issues/1695, so I couldn't respond.

I asked:

Could geckodriver itself also be published on crates.io?

And @whimboo's response was:

Sadly not. crates.io is used to share libraries but not binaries. See https://doc.rust-lang.org/cargo/reference/publishing.html. As such we do not upload any crates to that page.

You can publish binary crates on crates.io. See the section Installing Binaries from Crates.io with cargo install in the Rust book for more info.

So users could install geckodriver as simply as cargo install geckodriver :)

vext01 avatar Nov 01 '21 10:11 vext01

As mentioned on the other issue we formerly decided to not push geckodriver to crates.io. I would let @jgraham reply here if he thinks it might be worth reconsidering.

whimboo avatar Nov 01 '21 12:11 whimboo

I noticed today that other Rust tools like minidump-stackwalk are also on crates.io. So it might indeed be a good idea. We will discuss in next weeks meeting.

whimboo avatar Nov 09 '21 07:11 whimboo

Great. I think it's a no-brainer, as it would make geckodriver really very easy to install.

vext01 avatar Nov 11 '21 12:11 vext01

We decided to also publish the marionette and geckodriver crates to crates.io so that it will be easier for folks that already have the rust toolchain installed and want to use a custom build geckodriver. It will be tracked over on https://bugzilla.mozilla.org/show_bug.cgi?id=1723202.

whimboo avatar Nov 16 '21 12:11 whimboo

That's great. Thank you!

vext01 avatar Nov 17 '21 13:11 vext01