Skip to content

Commit

Permalink
libdatachannel backend impl (#111)
Browse files Browse the repository at this point in the history
* libdatachannel backend impl

* integration complete, 1 failing test

* lint

* ci

* ci

* win test

* win test

* tracing

* info level

* test

* make pion be the default
  • Loading branch information
neonphog authored Oct 30, 2024
1 parent 64a717f commit ef7626a
Show file tree
Hide file tree
Showing 20 changed files with 1,082 additions and 313 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,6 @@ jobs:
manifest-dir: ${{ github.workspace }}/.github/manifest
github-binarycache: true

- name: Cargo Build Windows
if: matrix.os == 'windows-latest'
run: |-
$env:SODIUM_LIB_DIR="$(pwd)\vcpkg\packages\libsodium_x64-windows-release\lib"
cargo build --all-targets
- name: Cargo Build
if: matrix.os != 'windows-latest'
run: cargo build --all-targets

- name: Cargo Build - musl
if: matrix.os == 'ubuntu-latest'
run: |
Expand All @@ -70,15 +60,15 @@ jobs:
- name: Cargo Test Windows
if: matrix.os == 'windows-latest'
env:
RUST_LOG: error
RUST_LOG: info
RUST_BACKTRACE: 1
run: |-
$env:SODIUM_LIB_DIR="$(pwd)\vcpkg\packages\libsodium_x64-windows-release\lib"
cargo test -- --nocapture
make unit
- name: Cargo Test
if: matrix.os != 'windows-latest'
env:
RUST_LOG: error
RUST_LOG: info
RUST_BACKTRACE: 1
run: cargo test -- --nocapture
run: make unit
206 changes: 206 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ bit_field = "0.10.2"
bytes = "1.4.0"
clap = { version = "4.4.6", features = [ "derive", "wrap_help" ] }
criterion = { version = "0.5.1", features = [ "async_tokio" ] }
datachannel = { version = "0.13.1", default-features = false, features = [ "tracing", "vendored" ] }
dirs = "5.0.0"
dunce = "1.0.3"
futures = "0.3.28"
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,17 @@ test: static unit

unit:
cargo build --all-targets
RUST_BACKTRACE=1 RUST_LOG=error cargo test -- --nocapture
RUST_BACKTRACE=1 RUST_LOG=info cargo test -- --nocapture
#--TODO--Once libdatachannel is the default, we'll want to keep
# go-pion tested for a while until we're ready to deprecate it
#RUST_BACKTRACE=1 RUST_LOG=info cargo test --no-default-features --features backend-go-pion --manifest-path crates/tx5-connection/Cargo.toml -- --nocapture
#RUST_BACKTRACE=1 RUST_LOG=info cargo test --no-default-features --features backend-go-pion --manifest-path crates/tx5/Cargo.toml -- --nocapture

static: dep fmt lint docs
@if [ "${CI}x" != "x" ]; then git diff --exit-code; fi

lint:
cargo clippy -- -Dwarnings
cargo clippy --features backend-go-pion,backend-libdatachannel -- -Dwarnings

dep:
@#uhhh... better way to do this? depend on cargo-tree?
Expand Down
Loading

0 comments on commit ef7626a

Please sign in to comment.