Skip to content

Commit

Permalink
quic
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek committed Feb 13, 2024
1 parent 6be389c commit 001fb6a
Show file tree
Hide file tree
Showing 20 changed files with 1,503 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ junit.xml

# Jupyter files
.ipynb_checkpoints/
Untitled*.ipynb
Untitled*.ipynb
109 changes: 95 additions & 14 deletions Cargo.lock

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

7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ members = [
"ext/napi",
"ext/net",
"ext/node",
"ext/quic",
"ext/url",
"ext/web",
"ext/webgpu",
Expand Down Expand Up @@ -81,6 +82,7 @@ deno_webgpu = { version = "0.104.0", path = "./ext/webgpu" }
deno_webidl = { version = "0.137.0", path = "./ext/webidl" }
deno_websocket = { version = "0.142.0", path = "./ext/websocket" }
deno_webstorage = { version = "0.132.0", path = "./ext/webstorage" }
deno_quic = { version = "0.1.0", path = "./ext/quic" }

aes = "=0.8.3"
anyhow = "1.0.57"
Expand Down Expand Up @@ -172,6 +174,7 @@ url = { version = "2.3.1", features = ["serde", "expose_internals"] }
uuid = { version = "1.3.0", features = ["v4"] }
webpki-roots = "0.25.2"
zstd = "=0.12.4"
quinn = { version = "=0.10.2", default-features = false, features = ["runtime-tokio", "tls-rustls"] }

# crypto
hkdf = "0.12.3"
Expand Down Expand Up @@ -256,6 +259,8 @@ opt-level = 3
opt-level = 3
[profile.bench.package.deno_net]
opt-level = 3
[profile.bench.package.deno_quic]
opt-level = 3
[profile.bench.package.deno_crypto]
opt-level = 3
[profile.bench.package.deno_node]
Expand Down Expand Up @@ -312,6 +317,8 @@ opt-level = 3
opt-level = 3
[profile.release.package.deno_net]
opt-level = 3
[profile.release.package.deno_quic]
opt-level = 3
[profile.release.package.deno_web]
opt-level = 3
[profile.release.package.deno_crypto]
Expand Down
1 change: 1 addition & 0 deletions cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ mod ts {
deno_broadcast_channel::get_declaration(),
);
op_crate_libs.insert("deno.net", deno_net::get_declaration());
op_crate_libs.insert("deno.quic", deno_quic::get_declaration());

// ensure we invalidate the build properly.
for (_, path) in op_crate_libs.iter() {
Expand Down
7 changes: 7 additions & 0 deletions cli/tsc/99_main_compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ delete Object.prototype.__proto__;
"listenDatagram",
"openKv",
"umask",
"connectQuic",
"listenQuic",
"QuicBidirectionalStream",
"QuicConn",
"QuicListener",
"QuicReceiveStream",
"QuicSendStream",
]);
const unstableMsgSuggestion =
"If not, try changing the 'lib' compiler option to include 'deno.unstable' " +
Expand Down
1 change: 1 addition & 0 deletions cli/tsc/dts/lib.deno.ns.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
/// <reference lib="deno.net" />
/// <reference lib="deno.quic" />

/** Deno provides extra properties on `import.meta`. These are included here
* to ensure that these are still available when using the Deno namespace in
Expand Down
1 change: 1 addition & 0 deletions cli/tsc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ pub fn get_types_declaration_file_text() -> String {
"deno.crypto",
"deno.broadcast_channel",
"deno.net",
"deno.quic",
"deno.shared_globals",
"deno.cache",
"deno.window",
Expand Down
Loading

0 comments on commit 001fb6a

Please sign in to comment.