From 2f70d61dbb415e9eb1406e4e29a79766bbe67c9a Mon Sep 17 00:00:00 2001 From: Philip Craig Date: Tue, 5 Mar 2024 12:12:52 +1000 Subject: [PATCH] Release 0.33.0 --- .cargo/{config => config.toml} | 0 CHANGELOG.md | 43 ++++++++++++++++++++++++++++++++++ Cargo.toml | 6 ++--- crates/rewrite/Cargo.toml | 4 ++-- 4 files changed, 48 insertions(+), 5 deletions(-) rename .cargo/{config => config.toml} (100%) diff --git a/.cargo/config b/.cargo/config.toml similarity index 100% rename from .cargo/config rename to .cargo/config.toml diff --git a/CHANGELOG.md b/CHANGELOG.md index 12c8653b..6c02dbb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,49 @@ -------------------------------------------------------------------------------- +## 0.33.0 + +Released 2024/03/05. + +### Breaking changes + +* Deleted file format variants in `RelocationKind`. Replaced their usage + with `read::Relocation::flags` and `write::Relocation::flags`. + [#585](https://github.com/gimli-rs/object/pull/585) + +* Replaced `kind`, `encoding` and `size` fields in `write::Relocation` + with `RelocationFlags::Generic` in the `flags` field. + [#585](https://github.com/gimli-rs/object/pull/585) + +* Replaced `macho::FatHeader::parse`, `macho::FatHeader::parse_arch32`, + and `macho::FatHeader::parse_arch64` with `read::macho::MachOFatFile`, + `read::macho::MachOFatFile32` and `read::macho::MachOFatFile64`. + [#623](https://github.com/gimli-rs/object/pull/623) + +### Added + +* Added `macho::PLATFORM_XROS` and `macho::PLATFORM_XROSSIMULATOR`. + [#626](https://github.com/gimli-rs/object/pull/626) + +* Added `build::elf::Builder` and associated types. + Extended `write::elf::Writer` to support this. + [#618](https://github.com/gimli-rs/object/pull/618) + +### Changed + +* Changed the lifetime to `'data` for the return value of `ObjectSection::name`, + `ObjectSection::name_bytes`, `ObjectComdat::name`, `ObjectComdat::name_bytes`. + [#620](https://github.com/gimli-rs/object/pull/620) + [#622](https://github.com/gimli-rs/object/pull/622) + +* Checked that sizes are smaller than the file length in `read::ReadCache`. + [#630](https://github.com/gimli-rs/object/pull/630) + +* Used `Vec::try_reserve_exact` for large allocations. + [#632](https://github.com/gimli-rs/object/pull/632) + +-------------------------------------------------------------------------------- + ## 0.32.2 Released 2023/12/24. diff --git a/Cargo.toml b/Cargo.toml index 1d7b1ec3..600851f2 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "object" -version = "0.32.2" +version = "0.33.0" edition = "2018" exclude = ["/.github", "/testfiles"] keywords = ["object", "elf", "mach-o", "pe", "coff"] @@ -16,10 +16,10 @@ features = ['doc'] crc32fast = { version = "1.2", default-features = false, optional = true } flate2 = { version = "1", optional = true } indexmap = { version = "2.0", default-features = false, optional = true } -wasmparser = { version = "0.118.0", optional = true } +wasmparser = { version = "0.201.0", optional = true } memchr = { version = "2.4.1", default-features = false } hashbrown = { version = "0.14.0", features = ["ahash"], default-features = false, optional = true } -ruzstd = { version = "0.5.0", optional = true } +ruzstd = { version = "0.6.0", optional = true } # Internal feature, only used when building as part of libstd, not part of the # stable interface of this crate. diff --git a/crates/rewrite/Cargo.toml b/crates/rewrite/Cargo.toml index 1941295a..198dd8b9 100644 --- a/crates/rewrite/Cargo.toml +++ b/crates/rewrite/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "object-rewrite" -version = "0.0.0" +version = "0.1.0" edition = "2021" description = "Rewrite object files with modifications" @@ -8,7 +8,7 @@ description = "Rewrite object files with modifications" features = ['doc'] [dependencies] -object = { version = "0.32", default-features = false, features = ["build", "elf"], path = "../.." } +object = { version = "0.33.0", default-features = false, features = ["build", "elf"], path = "../.." } # Dependencies for the cli anyhow = { version = "1.0.79", optional = true }