Removed STD stuff

rust
E. Almqvist 3 years ago
parent 5b13d9b1ba
commit 314719e12b
  1. 5
      Makefile
  2. 3
      kernel/test.rs

@ -7,7 +7,8 @@ CFLAGS = -fno-pie -m32 -Os -ffreestanding
# Rust # Rust
RC = rustc RC = rustc
# WARN: target might not exist on your machine. Just swap it out to whatever 32bit target that you have. # WARN: target might not exist on your machine. Just swap it out to whatever 32bit target that you have.
RFLAGS = --emit=obj --target i686-unknown-linux-gnu RTARGET = i686-unknown-linux-gnu
RFLAGS = --emit=obj --target $(RTARGET)
# Assembly # Assembly
AA = nasm AA = nasm
@ -55,7 +56,7 @@ kernel.bin: kernel/kernel_entry.o kernel/enable_paging.o $(OBJ) $(ROBJ)
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) -c $< -o $@
%.o : %.rs %.o : %.rs
$(RC) $(RFLAGS) $< -o $@ $(RC) $< -o $@ $(RFLAGS)
%.o : %.asm %.o : %.asm
$(AA) $< -f elf -o $@ $(AFLAGS) $(AA) $< -f elf -o $@ $(AFLAGS)

@ -1,3 +1,6 @@
#![no_std]
#![no_main]
extern "C" { extern "C" {
fn println(text: &str); fn println(text: &str);
} }

Loading…
Cancel
Save