remove crypto, just use libsodium

This commit is contained in:
2026-03-12 17:49:42 +01:00
parent f21abaafff
commit f2a7179b03
3 changed files with 5 additions and 471 deletions

View File

@@ -70,11 +70,6 @@ fn compile_file(args: Args) -> Result<(), ZernError> {
include_str!("std/syscalls.zr").into(),
)?;
compile_file_to(&mut codegen, "std.zr", include_str!("std/std.zr").into())?;
compile_file_to(
&mut codegen,
"crypto.zr",
include_str!("std/crypto.zr").into(),
)?;
compile_file_to(&mut codegen, filename, source)?;
if !args.output_asm {
@@ -133,6 +128,11 @@ struct Args {
fn main() {
let args = Args::parse();
if !args.use_gcc && !args.cflags.is_empty() {
eprintln!("You can't set CFLAGS if you're not using gcc. Add the -m flag.");
process::exit(1);
}
if let Err(err) = compile_file(args) {
eprintln!("{}", err);
process::exit(1);