fish-shell/fish-rust/src/lib.rs
Johannes Altmanninger 517d53dc46 Port util.cpp to Rust
The original implementation without the test took me 3 hours (first time
seriously looking into this)

The functions take "wcharz_t" for smooth integration with existing C++ callers.
This is at the expense of Rust callers, which would prefer "&wstr".  Would be
nice to declare a function parameter that accepts both but I don't think
that really works since "wcharz_t" drops the lifetime annotation.
2023-02-03 18:55:06 +01:00

25 lines
373 B
Rust

#![allow(non_camel_case_types)]
#![allow(dead_code)]
#![allow(non_upper_case_globals)]
#![allow(clippy::needless_return)]
#[macro_use]
extern crate lazy_static;
mod fd_readable_set;
mod fds;
mod ffi;
mod ffi_init;
mod ffi_tests;
mod flog;
mod signal;
mod smoke;
mod topic_monitor;
mod util;
mod wchar;
mod wchar_ext;
mod wchar_ffi;
mod wgetopt;
mod wutil;
mod builtins;