Skip to content

Commit

Permalink
feat: initial implementation
Browse files Browse the repository at this point in the history
- feat: reactive (async request-reply) websocket server
- feat: periodic broadcast websocket server
- feat: endpoint based pubsub broadcast websocket server
- feat: re-export used dependencies to avoid dependencies nightmare
- feat: sentry option to capture panic
- feat: re-export MiMalloc as a secure memory allocator option
  • Loading branch information
Ujang360 committed Nov 1, 2019
1 parent cc59a49 commit 3e4b3e1
Show file tree
Hide file tree
Showing 12 changed files with 1,323 additions and 680 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Build

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Compile Tests
run: cargo build --verbose
- name: Unit Tests
run: cargo test
- name: Linter
run: cargo clippy --all-targets --all-features -- -D warnings --verbose
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Generated by Cargo
# will have compiled files and executables
/target/
# Compiled files and executables
/target

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# VSCode
.vscode/
75 changes: 75 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
[package]
name = "bitwyre_ws_core"
version = "0.1.0"
edition = "2018"
publish = false


# Profiles (used by cargo build/test/bench)

[profile.dev]
opt-level = 0
debug = true
rpath = false
lto = false
debug-assertions = true
codegen-units = 16
panic = 'unwind'
incremental = true
overflow-checks = true

[profile.release]
opt-level = 3
debug = false
rpath = false
lto = true
debug-assertions = false
codegen-units = 1
panic = 'abort'
incremental = false
overflow-checks = false

[profile.test]
opt-level = 0
debug = 2
rpath = false
lto = false
debug-assertions = true
codegen-units = 16
incremental = true
overflow-checks = true

[profile.bench]
opt-level = 3
debug = false
rpath = false
lto = true
debug-assertions = false
codegen-units = 16
incremental = false
overflow-checks = false


# Package dependencies

[dependencies]
openssl = { version = "*", features = ["vendored"] }
serde = { version = "*", features = ["derive"] }
serde_json = "*"
chrono = { version = "*", features = ["serde"] }
uuid = { version = "=0.7.*", features = ["serde", "v4"] }
actix = "*"
actix-rt = "*"
actix-server = "=0.6.*"
actix-codec = "*"
actix-web = "*"
actix-web-actors = "*"
env_logger = "=0.7.1"
url = "*"
log = "*"
sentry = "*"
futures = "*"
futures-locks = "*"
crossbeam-channel = "*"
crossbeam-utils = "*"
mimalloc = { version = "*", default-features = false }
Loading

0 comments on commit 3e4b3e1

Please sign in to comment.