Skip to content

Commit 0f508d9

Browse files
committed
v0.3.5
More reliable proc macro path resolving.
1 parent 4cea7d7 commit 0f508d9

File tree

5 files changed

+24
-15
lines changed

5 files changed

+24
-15
lines changed

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.3.5] - 2024-12-23
10+
11+
- Bump dependencies.
12+
- Make the proc macro path resolver more robust.
13+
914
## [0.3.4] - 2024-12-19
1015

1116
- Improve remapped dependency support in the proc macro.
@@ -59,7 +64,8 @@ Updated dependencies.
5964

6065
Initial release.
6166

62-
[Unreleased]: https://github.com/ink-feather-org/trait-cast-rs/compare/v0.3.4...HEAD
67+
[Unreleased]: https://github.com/ink-feather-org/trait-cast-rs/compare/v0.3.5...HEAD
68+
[0.3.5]: https://github.com/ink-feather-org/trait-cast-rs/compare/v0.3.4...v0.3.5
6369
[0.3.4]: https://github.com/ink-feather-org/trait-cast-rs/compare/v0.3.3...v0.3.4
6470
[0.3.3]: https://github.com/ink-feather-org/trait-cast-rs/compare/v0.3.2...v0.3.3
6571
[0.3.2]: https://github.com/ink-feather-org/trait-cast-rs/compare/v0.3.1...v0.3.2

Cargo.lock

+13-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ resolver = "2"
33
members = ["tests/remapped_dependency_test"]
44

55
[workspace.lints.clippy]
6+
let_and_return = "allow"
67
needless_lifetimes = "allow"
78
option_if_let_else = "allow"
89
# see: https://github.com/bevyengine/bevy/pull/15375#issuecomment-2366966219

macros/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "trait-cast-macros"
3-
version = "0.3.4"
3+
version = "0.3.5"
44
edition = "2024"
55
license = "MIT OR Apache-2.0"
66
description = "Proc-macro implementation for the 'trait-cast' crate."
@@ -25,7 +25,7 @@ tracing = { version = "0.1", default-features = false }
2525
tracing-proc-macros-ink = "0.1"
2626
toml_edit = { version = "0.22", default-features = false, features = ["parse"] }
2727
thiserror = { version = "2.0", default-features = false }
28-
cargo-manifest-proc-macros = "0.1"
28+
cargo-manifest-proc-macros = "0.2"
2929

3030
[lints]
3131
workspace = true

macros/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ impl quote::ToTokens for TraitCastTargets {
7171
pub fn make_trait_castable(args: TokenStream1, input: TokenStream1) -> TokenStream1 {
7272
proc_macro_logger_default_setup();
7373

74-
let cargo_manifest = CargoManifest::shared();
75-
let crate_path = cargo_manifest.resolve_crate_path("trait-cast", &[]);
74+
let crate_path = CargoManifest::shared().resolve_crate_path("trait-cast", &[]);
7675

7776
// Convert the input to a TokenStream2
7877
let input = TokenStream2::from(input);

0 commit comments

Comments
 (0)