Skip to content

Commit

Permalink
quic
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek committed Feb 25, 2024
1 parent 6567dc9 commit c8e070f
Show file tree
Hide file tree
Showing 22 changed files with 1,505 additions and 25 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
103 changes: 92 additions & 11 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 @@ -74,6 +75,7 @@ deno_kv = { version = "0.47.0", path = "./ext/kv" }
deno_napi = { version = "0.69.0", path = "./ext/napi" }
deno_net = { version = "0.131.0", path = "./ext/net" }
deno_node = { version = "0.76.0", path = "./ext/node" }
deno_quic = { version = "0.1.0", path = "./ext/quic" }
deno_tls = { version = "0.126.0", path = "./ext/tls" }
deno_url = { version = "0.139.0", path = "./ext/url" }
deno_web = { version = "0.170.0", path = "./ext/web" }
Expand Down Expand Up @@ -140,6 +142,7 @@ pin-project = "1.0.11" # don't pin because they yank crates from cargo
pretty_assertions = "=1.4.0"
prost = "0.11"
prost-build = "0.11"
quinn = { version = "=0.10.2", default-features = false, features = ["runtime-tokio", "tls-rustls"] }
rand = "=0.8.5"
regex = "^1.7.0"
reqwest = { version = "=0.11.20", default-features = false, features = ["rustls-tls", "stream", "gzip", "brotli", "socks", "json"] } # pinned because of https://github.com/seanmonstar/reqwest/pull/1955
Expand Down Expand Up @@ -257,6 +260,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 @@ -313,6 +318,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 c8e070f

Please sign in to comment.