Skip to content

Commit

Permalink
Deprecate Bindgen::reference_types() (#4238)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda authored Oct 31, 2024
1 parent e41d601 commit ff8b683
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/cli-support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ impl Bindgen {
self
}

#[deprecated = "automatically detected via `-Ctarget-feature=+reference-types`"]
pub fn reference_types(&mut self, enable: bool) -> &mut Bindgen {
self.externref = enable;
self
Expand Down
1 change: 1 addition & 0 deletions crates/cli/src/bin/wasm-bindgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ fn rmain(args: &Args) -> Result<(), Error> {
.omit_default_module_path(args.flag_omit_default_module_path)
.split_linked_modules(args.flag_split_linked_modules);
if let Some(true) = args.flag_reference_types {
#[allow(deprecated)]
b.reference_types(true);
}
if let Some(ref name) = args.flag_no_modules_global {
Expand Down

0 comments on commit ff8b683

Please sign in to comment.