Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
Migrate to tokio-tungstenite (#43)
Browse files Browse the repository at this point in the history
* First attempt

* Implement conversion to tokio-tungstenite from websockets-rs

* Formatting

* Formatting
  • Loading branch information
danielvschoor authored Jul 1, 2022
1 parent e4a91dd commit abc9ec1
Show file tree
Hide file tree
Showing 12 changed files with 565 additions and 534 deletions.
23 changes: 13 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,28 @@ requires-dist = ["portpicker", "aiohttp"]
sc2-proto = { git = "https://github.com/aiarena/sc2-proto-rs.git" }
protobuf = { version = "^3.1.0", features = ["with-bytes"] }
log = "^0.4.13"
env_logger = "0.9.0"
shellexpand = "^2.1.0"
regex = "^1.4.3"
portpicker = { git = "https://github.com/aiarena/portpicker-rs" }
portpicker = { git = "https://github.com/aiarena/portpicker-rs" }
tempfile = "3.1.0"
crossbeam = "^0.8.0"
serde = { version = "^1.0", features = ["derive"] }
serde_json = "^1.0"
bincode = {version="^1.3.1", optional=true}
bincode = { version = "^1.3.1", optional = true }
csv = "1.1.3"
pyo3-log = {version="^0.6.0", optional=true}
pyo3-log = { version="^0.6.0", optional=true }
tokio = { version = "1.19.0", features = ["time","macros","rt","rt-multi-thread"] }
futures-util = "0.3.21"
anyhow = "1.0.58"

[dependencies.websocket]
git = "https://github.com/aiarena/rust-websocket"
default-features = false
[dependencies.tokio-tungstenite]
version = "0.17.1"

[dependencies.pyo3]
version = "^0.16"
optional = true
features=["auto-initialize"]
features = ["auto-initialize"]

[features]
extension-module = ["bincode", "pyo3", "pyo3-log", "pyo3/extension-module"]
Expand All @@ -52,13 +55,13 @@ build = ["bincode", "pyo3", "pyo3-log"]

[profile.release]
opt-level = 3
debug=false
panic="abort"
debug = false
panic = "abort"
lto = "fat"
codegen-units = 1

[profile.release.package."*"]
opt-level = 3
debug=false
debug = false
codegen-units = 1

4 changes: 2 additions & 2 deletions rust_ac/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
portpicker==1.4.0
aiohttp>=3.7.4
portpicker==1.5.2
aiohttp>=3.8.1
Loading

0 comments on commit abc9ec1

Please sign in to comment.