Skip to content

Fix windows build #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 16, 2017
Merged

Conversation

kureuil
Copy link
Contributor

@kureuil kureuil commented Aug 15, 2017

Fixes #8

This is the first step to get rust-lang/crates.io running on Windows.

Because I don't have access to an Apple device, this PR wasn't tested on macOS. However, I've been able to test a Windows version of crates.io and I get 0-failures after updating to this version of civet.

Civetweb was updated to its latest released stable version (1.9.1), the build
script for civet-sys now uses the cmake crate making compatibilty with
Windows easy.

The cmake build script:

  • forces the "Release" build type to disable debug logging in civetweb;
  • disables building the tests, because they are not used;
  • allow warnings at compile-time, can be pretty common on Linux;

kureuil and others added 4 commits August 12, 2017 19:43
Civetweb was updated to its latest released stable version, the build
script for civet-sys now uses the cmake crate making compatibilty with
Windows easy. The bindings were updated to reflect civetweb's upstream
changes. The tests were modifed to using Carriage Return & Line Feed as
Civet seems to be behving differently now with HTTP Requests using Line
Feed as line separator.
Because the socket is configured with the SO_REUSEADDR flag on
non-Windows systems, you can successfully launch multiple instance of a
civet webserver on the same host-port pair. The test is now only run on
windows platform because the socket is configured with the
SO_EXCLUSIVEADDRUSE flag there.
@kureuil kureuil mentioned this pull request Aug 15, 2017
3 tasks
@alexcrichton alexcrichton merged commit ee8fe4f into wycats:master Aug 16, 2017
@alexcrichton
Copy link
Collaborator

👍

@kureuil
Copy link
Contributor Author

kureuil commented Sep 14, 2017

@alexcrichton Could you publish version 0.10.0 on crates.io please ? That'd be great !

@alexcrichton
Copy link
Collaborator

Sure! Published now

@kureuil
Copy link
Contributor Author

kureuil commented Sep 14, 2017

Thanks a lot !

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

Successfully merging this pull request may close these issues.

2 participants