@tutao/node-mimimi
v315.251204.0
Published
**M**ini **IM**AP **IM**porter **I**mplementation
Readme
Node-Mimimi
Mini IMAP IMporter Implementation
A native node module enabling the tuta mail desktop client to import mail from IMAP servers into your tuta account. It's using napi-rs for project setup and to generate the bindings.
Building
napi-rs by default generates a common js module that is supposed to be compatible with ESM named imports, but we had problems getting it to import in all cases. One solution was found on the napi-rs github. It works, but requires us to build like this:
napi build --platform . --js binding.cjs --dts binding.d.ts
Compilation
See https://napi.rs/docs/cross-build/summary
Setup
apt install clang llvm
Linux (from linux):
rustup target add x86_64-unknown-linux-gnu
Windows (from linux):
rustup target add x86_64-pc-windows-msvccargo install cargo-xwin
MacOS (only from MacOS):
rustup target add x86_64-apple-darwinrustup target add aarch64-apple-darwin
