Skip to content

bzhoek/syntact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
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

Sources