Open tnull opened 1 year ago
Still not a perfect solution, but if you use the solution from #1476 and also move the impl UniffiCustomTypeConverter
into that mod ffi
it should work.
Still not a perfect solution, but if you use the solution from #1476 and also move the
impl UniffiCustomTypeConverter
into thatmod ffi
it should work.
No, this is unfortunately not a solution at all. I won't arbitrary relocate type definitions just to make this lint work or fix Uniffi generation behavior for that matter.
Still not a perfect solution, but if you use the solution from #1476 and also move the
impl UniffiCustomTypeConverter
into thatmod ffi
it should work.No, this is unfortunately not a solution at all. I won't arbitrary relocate type definitions just to make this lint work or fix Uniffi generation behavior for that matter.
As I said a solution, a workaround, not a perfect one. If you can think of a proper way we can handle that your input (or PR) would be welcome.
I'd like to be able to enforce documentation for every exposed object and method in my crate, i.e., enable
#![deny(missing_docs)]
.However, this unfortunately doesn't play together with the
uniffi::include_scaffolding!
macro, as the generated code doesn't add documentation:I'm aware of https://github.com/mozilla/uniffi-rs/issues/1476, however the workaround suggested there doesn't work for me, as I define my types in a submodule which needs to access
UniffiCustomTypeConverter
. If I apply said workaround,UniffiCustomTypeConverter
can't be found as it's private and therefore must be included in the crate root to be used by submodules.┆Issue is synchronized with this Jira Task ┆Issue Number: UNIFFI-247