Skip to content

Commit 9f5b906

Browse files
committed
mention FFI wrapper crates
1 parent b9a2340 commit 9f5b906

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

posts/2020-11-19-Rust-1.48.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ With this annotation, if we search for "bar" in rustdoc's search, `Foo` will
149149
come up as part of the results, even though our search text doesn't have
150150
"Foo" in it.
151151

152+
An interesting use case for aliases is FFI wrapper crates, where each Rust
153+
function could be aliased to the C function it wraps. Existing users of the
154+
underlying C library would then be able to easily search the right Rust
155+
functions!
156+
152157
[75740]: https://github.com/rust-lang/rust/pull/75740/
153158

154159
### Library changes

0 commit comments

Comments
 (0)