-
Notifications
You must be signed in to change notification settings - Fork 226
Extract hyper-independent part of rust-websocket into a separate crate. #222
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
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
0f144f9
Add comment to is_secure_url
vi 519e885
Begin splitting into two crates
vi 5e20b76
Merge remote-tracking branch 'origin/master' into split_in_two
vi 6d47562
Rename websocket-codec to websocket-lowlevel
vi 1d2a1ee
Fix/ignore some tests
vi dfd0353
Add very minimal doc for websocket-lowlevel.
vi a23a700
Extract some hyper-independent header processing to the lowlevel crate
vi 041a090
Remove extra deps from the highlevel crate.
vi 54475ab
Merge remote-tracking branch 'origin/master' into split_in_two
vi a941262
cargo fmt
vi fad91d5
Merge remote-tracking branch 'origin/master' into split_in_two
vi 36be61b
Fix Rust 1.28 compat
vi d6f715e
Additional comment
vi 10dbb8c
Rename websocket-lowlevel to websocket-base
vi b3e3970
Elaborate comment in websocket-base
vi 0b51f58
Merge remote-tracking branch 'origin/master' into split_in_two
vi e1b811c
Bump version to 0.24.0
vi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "websocket" | ||
version = "0.23.0" | ||
version = "0.24.0" | ||
authors = ["cyderize <[email protected]>", "Michael Eden <[email protected]>"] | ||
|
||
description = "A WebSocket (RFC6455) library for Rust." | ||
|
@@ -19,11 +19,7 @@ license = "MIT" | |
hyper = "^0.10.6" | ||
unicase = "1.0" | ||
url = "1.0" | ||
bitflags = "1.0.4" | ||
rand = "0.6.1" | ||
byteorder = "1.0" | ||
sha1 = "0.6" | ||
base64 = "0.10.0" | ||
futures = { version = "0.1", optional = true } | ||
tokio-io = { version = "0.1", optional = true } | ||
tokio-tls = { version = "0.2.0", optional = true } | ||
|
@@ -32,6 +28,7 @@ tokio-codec = { version = "0.1", optional = true } | |
tokio-reactor = { version = "0.1", optional = true } | ||
bytes = { version = "0.4", optional = true } | ||
native-tls = { version = "0.2.1", optional = true } | ||
websocket-base = { path = "websocket-base", version="0.24.0", default-features=false } | ||
|
||
[dev-dependencies] | ||
futures-cpupool = "0.1" | ||
|
@@ -43,8 +40,13 @@ features = ["codec", "tcp", "rt-full"] | |
|
||
[features] | ||
default = ["sync", "sync-ssl", "async", "async-ssl"] | ||
sync = [] | ||
sync-ssl = ["native-tls", "sync"] | ||
async = ["bytes", "futures", "tokio-io", "tokio-tcp", "tokio-reactor", "tokio-codec"] | ||
async-ssl = ["native-tls", "tokio-tls", "async"] | ||
sync = ["websocket-base/sync"] | ||
sync-ssl = ["native-tls", "sync", "websocket-base/sync-ssl"] | ||
async = ["bytes", "futures", "tokio-io", "tokio-tcp", "tokio-reactor", "tokio-codec", "websocket-base/async"] | ||
async-ssl = ["native-tls", "tokio-tls", "async", "websocket-base/async-ssl"] | ||
nightly = ["hyper/nightly"] | ||
|
||
[workspace] | ||
members = [ | ||
"websocket-base" | ||
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
pub use websocket_lowlevel::header::WebSocketAccept
would be enoughThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not implement hyper_0.10's
Header
andHeaderFormat
traits.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see