Prepare to release 0.65.0 (#2492)
* Remove debugging prints
* Clean changelog
* Bump versions
* Run doctoc
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0195648..4c2dc0d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,126 +7,130 @@
- [Removed](#removed)
- [Fixed](#fixed)
- [Security](#security)
-- [0.64.0](#0640)
+- [0.65.0](#0650)
- [Added](#added-1)
- [Changed](#changed-1)
- [Removed](#removed-1)
- - [Fixed](#fixed-1)
- - [Security](#security-1)
-- [0.63.0](#0630)
+- [0.64.0](#0640)
- [Added](#added-2)
- [Changed](#changed-2)
- [Removed](#removed-2)
-- [0.62.0](#0620)
+ - [Fixed](#fixed-1)
+ - [Security](#security-1)
+- [0.63.0](#0630)
- [Added](#added-3)
- [Changed](#changed-3)
- - [Fixed](#fixed-2)
-- [0.61.0](#0610)
+ - [Removed](#removed-3)
+- [0.62.0](#0620)
- [Added](#added-4)
- [Changed](#changed-4)
+ - [Fixed](#fixed-2)
+- [0.61.0](#0610)
+ - [Added](#added-5)
+ - [Changed](#changed-5)
- [Fixed](#fixed-3)
- [0.60.1](#0601)
- [Fixed](#fixed-4)
- [0.60.0](#0600)
- - [Added](#added-5)
+ - [Added](#added-6)
- [Fixed](#fixed-5)
- - [Changed](#changed-5)
- - [Removed](#removed-3)
+ - [Changed](#changed-6)
+ - [Removed](#removed-4)
- [0.59.2](#0592)
- [0.59.1](#0591)
- [Fixed](#fixed-6)
- [0.59.0](#0590)
- - [Added](#added-6)
- - [Fixed](#fixed-7)
- - [Changed](#changed-6)
-- [0.58.1](#0581)
- [Added](#added-7)
-- [0.58.0](#0580)
- - [Added](#added-8)
- - [Fixed](#fixed-8)
+ - [Fixed](#fixed-7)
- [Changed](#changed-7)
+- [0.58.1](#0581)
+ - [Added](#added-8)
+- [0.58.0](#0580)
+ - [Added](#added-9)
+ - [Fixed](#fixed-8)
+ - [Changed](#changed-8)
- [Deprecated](#deprecated)
- - [Removed](#removed-4)
+ - [Removed](#removed-5)
- [Fixed](#fixed-9)
- [Security](#security-2)
- [0.57.0](#0570)
- - [Added](#added-9)
+ - [Added](#added-10)
- [Fixed](#fixed-10)
- [0.56.0](#0560)
- - [Added](#added-10)
- - [Changed](#changed-8)
+ - [Added](#added-11)
+ - [Changed](#changed-9)
- [Fixed](#fixed-11)
- [0.55.1](#0551)
- [Fixed](#fixed-12)
- [0.55.0](#0550)
- - [Removed](#removed-5)
- - [Added](#added-11)
- - [Changed](#changed-9)
+ - [Removed](#removed-6)
+ - [Added](#added-12)
+ - [Changed](#changed-10)
- [Fixed](#fixed-13)
- [0.54.1](#0541)
- - [Added](#added-12)
- - [Changed](#chainged-10)
- - [Fixed](#fixed-14)
-- [0.54.0](#0540)
- [Added](#added-13)
- [Changed](#changed-11)
+ - [Fixed](#fixed-14)
+- [0.54.0](#0540)
+ - [Added](#added-14)
+ - [Changed](#changed-12)
- [Fixed](#fixed-15)
- [0.53.3](#0533)
- - [Added](#added-14)
+ - [Added](#added-15)
- [Fixed](#fixed-16)
- [0.53.2](#0532)
- - [Changed](#changed-12)
-- [0.53.1](#0531)
- - [Added](#added-15)
-- [0.53.0](#0530)
- - [Added](#added-16)
- [Changed](#changed-13)
- - [Fixed](#fixed-17)
-- [0.52.0](#0520)
+- [0.53.1](#0531)
+ - [Added](#added-16)
+- [0.53.0](#0530)
- [Added](#added-17)
- [Changed](#changed-14)
+ - [Fixed](#fixed-17)
+- [0.52.0](#0520)
+ - [Added](#added-18)
+ - [Changed](#changed-15)
- [Fixed](#fixed-18)
- [0.51.1](#0511)
- [Fixed](#fixed-19)
- - [Changed](#changed-15)
+ - [Changed](#changed-16)
- [0.51.0](#0510)
- [Fixed](#fixed-20)
- - [Changed](#changed-16)
- - [Added](#added-18)
-- [0.50.0](#0500)
- - [Added](#added-19)
-- [0.49.3](#0493)
- - [Added](#added-20)
-- [0.49.2](#0492)
- [Changed](#changed-17)
+ - [Added](#added-19)
+- [0.50.0](#0500)
+ - [Added](#added-20)
+- [0.49.3](#0493)
+ - [Added](#added-21)
+- [0.49.2](#0492)
+ - [Changed](#changed-18)
- [0.49.1](#0491)
- [Fixed](#fixed-21)
- - [Changed](#changed-18)
-- [0.49.0](#0490)
- - [Added](#added-21)
- - [Fixed](#fixed-22)
- [Changed](#changed-19)
+- [0.49.0](#0490)
+ - [Added](#added-22)
+ - [Fixed](#fixed-22)
+ - [Changed](#changed-20)
- [0.48.1](#0481)
- [Fixed](#fixed-23)
- [0.48.0](#0480)
- - [Changed](#changed-20)
+ - [Changed](#changed-21)
- [Fixed](#fixed-24)
- [0.47.4](#0474)
- - [Added](#added-22)
+ - [Added](#added-23)
- [0.47.3](#0473)
- - [Changed](#changed-21)
+ - [Changed](#changed-22)
- [0.47.2](#0472)
- [Fixed](#fixed-25)
- [0.47.1](#0471)
- - [Changed](#changed-22)
+ - [Changed](#changed-23)
- [Fixed](#fixed-26)
- [0.47.0](#0470)
- - [Changed](#changed-23)
+ - [Changed](#changed-24)
- [Fixed](#fixed-27)
- [0.33.1 .. 0.46.0](#0331--0460)
- - [Added](#added-23)
- - [Removed](#removed-6)
- - [Changed](#changed-24)
+ - [Added](#added-24)
+ - [Removed](#removed-7)
+ - [Changed](#changed-25)
- [Fixed](#fixed-28)
- [0.33.1](#0331)
- [Fixed](#fixed-29)
@@ -136,23 +140,23 @@
- [0.32.1](#0321)
- [Fixed](#fixed-31)
- [0.32.0](#0320)
- - [Added](#added-24)
- - [Changed](#changed-25)
- - [Fixed](#fixed-32)
-- [0.31.0](#0310)
- [Added](#added-25)
- [Changed](#changed-26)
- - [Deprecated](#deprecated-1)
- - [Removed](#removed-7)
- - [Fixed](#fixed-33)
-- [0.30.0](#0300)
+ - [Fixed](#fixed-32)
+- [0.31.0](#0310)
- [Added](#added-26)
- [Changed](#changed-27)
+ - [Deprecated](#deprecated-1)
+ - [Removed](#removed-8)
+ - [Fixed](#fixed-33)
+- [0.30.0](#0300)
+ - [Added](#added-27)
+ - [Changed](#changed-28)
- [Deprecated](#deprecated-2)
- [Fixed](#fixed-34)
- [0.29.0](#0290)
- - [Added](#added-27)
- - [Changed](#changed-28)
+ - [Added](#added-28)
+ - [Changed](#changed-29)
- [Fixed](#fixed-35)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
@@ -162,47 +166,60 @@
# Unreleased
## Added
- * Added the `Builder::default_visibility` method and the
- `--default-visibility` flag to set the default visibility of fields.
- * Added the `--formatter` CLI flag with the values `none`, `rustfmt` and
- `prettyplease` to select which tool will be used to format the bindings. The
- default value is `rustfmt`.
- * Added the `Builder::formatter` method and the `Formatter` type to select
- which tool will be used to format the bindings.
- * Added the `Builder::emit_diagnostics` method and the `--emit-diagnostics`
- flag to enable emission of diagnostic messages under the `experimental`
- feature.
- * Added support for the `"efiapi"` calling convention.
- * Added the `ParseCallbacks::read_env_var` method which runs everytime
- `bindgen` reads and environment variable.
## Changed
- * Static functions with no arguments use `void` as their single argument
- instead of having no arguments when the `--wrap-static-fns` flag is used.
- * The source file generated when the `--wrap-static-fns` flag is enabled now
- contains `#include` directives with all the input headers and all the source
- code added with the `header_contents` method.
- * The source file generated when the `--wrap-static-fns` flag no longer uses
- `asm` labeling and the link name of static wrapper functions is allowed to
- be mangled.
- * The documentation of the generated `type` aliases now matches the comments
- of their `typedef` counterparts instead of using the comments of the aliased
- types.
- * The `Builder::rustfmt_bindings` methods and the `--no-rustfmt-bindings` flag
- are now deprecated in favor of the formatter API.
## Removed
- * The following deprecated flags were removed: `--use-msvc-mangling`,
- `--rustfmt-bindings` and `--size_t-is-usize`.
- * The `Bindings::emit_warnings` and `Bindings::warnings` methods were removed
- in favor of `--emit-diagnostics`.
- * Bindgen no longer generates C string constants that cannot be represented as
- byte slices.
## Fixed
## Security
+# 0.65.0
+
+## Added
+ * Added the `Builder::default_visibility` method and the
+ `--default-visibility` flag to set the default visibility of fields. (#2338)
+ * Added the `--formatter` CLI flag with the values `none`, `rustfmt` and
+ `prettyplease` to select which tool will be used to format the bindings. The
+ default value is `rustfmt`. (#2453)
+ * Added the `Builder::formatter` method and the `Formatter` type to select
+ which tool will be used to format the bindings. (#2453)
+ * Added the `Builder::emit_diagnostics` method and the `--emit-diagnostics`
+ flag to enable emission of diagnostic messages under the `experimental`
+ feature. (#2436)
+ * Added support for the `"efiapi"` calling convention (#2490).
+ * Added the `ParseCallbacks::read_env_var` method which runs everytime
+ `bindgen` reads and environment variable. (#2400)
+ * Added the `ParseCallbacks::generated_link_name_override` method which allow
+ overriding the link name of items. (#2425)
+ * Add support for C `enum`s when generating code while using the
+ `--wrap-static-fns` feature. (#2415)
+
+## Changed
+ * Static functions with no arguments use `void` as their single argument
+ instead of having no arguments when the `--wrap-static-fns` flag is used.
+ (#2443)
+ * The source file generated when the `--wrap-static-fns` flag is enabled now
+ contains `#include` directives with all the input headers and all the source
+ code added with the `header_contents` method. (#2447)
+ * The source file generated when the `--wrap-static-fns` flag no longer uses
+ `asm` labeling and the link name of static wrapper functions is allowed to
+ be mangled. (#2448)
+ * The documentation of the generated `type` aliases now matches the comments
+ of their `typedef` counterparts instead of using the comments of the aliased
+ types. (#2463)
+ * The `Builder::rustfmt_bindings` methods and the `--no-rustfmt-bindings` flag
+ are now deprecated in favor of the formatter API. (#2453)
+
+## Removed
+ * The following deprecated flags were removed: `--use-msvc-mangling`,
+ `--rustfmt-bindings` and `--size_t-is-usize`. (#2408)
+ * The `Bindings::emit_warnings` and `Bindings::warnings` methods were removed
+ in favor of `--emit-diagnostics`. (#2436)
+ * Bindgen no longer generates C string constants that cannot be represented as
+ byte slices. (#2487)
+
# 0.64.0
## Added
diff --git a/Cargo.lock b/Cargo.lock
index 38cc59f..7ddfeb7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -23,7 +23,7 @@
[[package]]
name = "bindgen"
-version = "0.64.0"
+version = "0.65.0"
dependencies = [
"annotate-snippets",
"bitflags",
@@ -45,7 +45,7 @@
[[package]]
name = "bindgen-cli"
-version = "0.64.0"
+version = "0.65.0"
dependencies = [
"bindgen",
"clap",
diff --git a/bindgen-cli/Cargo.toml b/bindgen-cli/Cargo.toml
index f5af6c8..fd21194 100644
--- a/bindgen-cli/Cargo.toml
+++ b/bindgen-cli/Cargo.toml
@@ -11,17 +11,16 @@
repository = "https://github.com/rust-lang/rust-bindgen"
documentation = "https://docs.rs/bindgen"
homepage = "https://rust-lang.github.io/rust-bindgen/"
-version = "0.64.0"
+version = "0.65.0"
edition = "2018"
-# If you change this, also update README.md and msrv in .github/workflows/bindgen.yml
-rust-version = "1.60.0"
+rust-version = "1.64.0"
[[bin]]
path = "main.rs"
name = "bindgen"
[dependencies]
-bindgen = { path = "../bindgen", version = "=0.64.0", features = ["__cli", "experimental"] }
+bindgen = { path = "../bindgen", version = "=0.65.0", features = ["__cli", "experimental"] }
shlex = "1"
clap = { version = "4", features = ["derive"] }
env_logger = { version = "0.10.0", optional = true }
diff --git a/bindgen/Cargo.toml b/bindgen/Cargo.toml
index 0e95333..2faa6fc 100644
--- a/bindgen/Cargo.toml
+++ b/bindgen/Cargo.toml
@@ -14,7 +14,7 @@
repository = "https://github.com/rust-lang/rust-bindgen"
documentation = "https://docs.rs/bindgen"
homepage = "https://rust-lang.github.io/rust-bindgen/"
-version = "0.64.0"
+version = "0.65.0"
edition = "2018"
build = "build.rs"
# If you change this, also update README.md and msrv in .github/workflows/bindgen.yml
diff --git a/bindgen/options/mod.rs b/bindgen/options/mod.rs
index 257b86a..272c485 100644
--- a/bindgen/options/mod.rs
+++ b/bindgen/options/mod.rs
@@ -121,7 +121,6 @@
};
$({
- eprintln!("doing {}", stringify!($field));
let func: fn(&$ty, &mut Vec<String>) = as_args!($as_args);
func(&self.options.$field, &mut args);
})*