/syntact

Format piped input

Primary LanguageRust

syntact

Render stdin input with syntect as formatted HTML to stdout.

Building

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
make install # installs all targets

export MACOSX_DEPLOYMENT_TARGET=10.15
make clean
make

codesign -d --verbose=2 target/aarch64-apple-ios/release/libsyntact.a # verify signatures

Sources