Skip to content

Commit 440afe9

Browse files
authored
[workerd-cxx] kj::Own refcount check and reexport (#45)
* [workerd-cxx] Export Own as kj_rs::Own and use proper refcount test * [workerd-cxx] Use full path for isrefcounted
1 parent b0bbf16 commit 440afe9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

gen/src/write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1664,7 +1664,7 @@ fn write_kj_own(out: &mut OutFile, key: NamedImplKey) {
16641664
);
16651665
writeln!(
16661666
out,
1667-
"static_assert(!::std::is_base_of<::kj::Refcounted, {}>::value, \"Value must not inherit from kj::Refcounted\");",
1667+
"static_assert(!::kj::_::IsRefcounted<{}>, \"Value must not inherit from kj::Refcounted\");",
16681668
inner
16691669
);
16701670
}

kj-rs/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use awaiter::WakerRef;
44
pub use crate::ffi::KjWaker;
55
pub use awaiter::PromiseAwaiter;
66
pub use future::FuturePollStatus;
7+
pub use own::repr::Own;
78
pub use promise::KjPromise;
89
pub use promise::KjPromiseNodeImpl;
910
pub use promise::OwnPromiseNode;

0 commit comments

Comments
 (0)