Render stdin
input with syntect
as formatted HTML to stdout
.
The instructions for building a Rust XCFramework from https://betterprogramming.pub/from-rust-to-swift-df9bde59b7cd (now paywalled) are automated. https://medium.com/@kennethyoel/a-swiftly-oxidizing-tutorial-44b86e8d84f5 distinguishes simulator and real iOS.
rustup default stable # 1.74.1
rustup update
rustup target add (x86_64|aarch64)-apple-(darwin|ios)
rustup target add aarch64-apple-darwin
rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-ios
rustup target add aarch64-apple-ios-sim
rustup target add x86_64-apple-ios
export MACOSX_DEPLOYMENT_TARGET=10.15
make clean
make
codesign -d --verbose=2 target/aarch64-apple-ios/release/libsyntact.a # verify signatures
- https://stackoverflow.com/a/64864364/10326604
- https://www.gnu.org/software/make/manual/html_node/Automatic-Variables.html
- https://stackoverflow.com/questions/60782402/calling-rust-from-swift, doesn't work
- https://snacky.blog/en/string-ffi-rust.html does
- https://gregoryszorc.com/docs/apple-codesign/main/ should ease code signing
- https://medium.com/visly/rust-on-ios-39f799b3c1dd
- https://nadim.computer/posts/2022-02-11-maccatalyst.html