Skip to content

Commit

Permalink
Rebased off of halzy/stable_downgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
halzy committed Jun 13, 2021
1 parent 3ef30d9 commit 3592b83
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/web-sys/src/features/gen_ReadableStream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ extern "C" {
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/pipeTo)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `WritableStream`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn pipe_to(this: &ReadableStream, destination: &WritableStream) -> ::js_sys::Promise;
#[cfg(web_sys_unstable_apis)]
#[cfg(all(feature = "StreamPipeOptions", feature = "WritableStream",))]
Expand All @@ -90,6 +93,9 @@ extern "C" {
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/pipeTo)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `StreamPipeOptions`, `WritableStream`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn pipe_to_with_options(
this: &ReadableStream,
destination: &WritableStream,
Expand Down
8 changes: 8 additions & 0 deletions crates/web-sys/src/features/gen_ReadableWritablePair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ extern "C" {
pub type ReadableWritablePair;
}
impl ReadableWritablePair {
#[cfg(web_sys_unstable_apis)]
#[cfg(all(feature = "ReadableStream", feature = "WritableStream",))]
#[doc = "Construct a new `ReadableWritablePair`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `ReadableWritablePair`, `WritableStream`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new(readable: &ReadableStream, writable: &WritableStream) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
Expand All @@ -40,10 +44,14 @@ impl ReadableWritablePair {
let _ = r;
self
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "WritableStream")]
#[doc = "Change the `writable` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ReadableWritablePair`, `WritableStream`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn writable(&mut self, val: &WritableStream) -> &mut Self {
use wasm_bindgen::JsValue;
let r = ::js_sys::Reflect::set(
Expand Down

0 comments on commit 3592b83

Please sign in to comment.