move rcore-ulib to rcore-user

master
WangRunji 6 years ago
parent acf1c655d4
commit 888f0018d7

9
user/Cargo.lock generated

@ -9,19 +9,12 @@ dependencies = [
] ]
[[package]] [[package]]
name = "rcore-ulib" name = "rcore-user"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"linked_list_allocator 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)", "linked_list_allocator 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
[[package]]
name = "rcore-user-programs"
version = "0.1.0"
dependencies = [
"rcore-ulib 0.1.0",
]
[[package]] [[package]]
name = "spin" name = "spin"
version = "0.4.10" version = "0.4.10"

@ -1,8 +1,8 @@
[package] [package]
name = "rcore-user-programs" name = "rcore-user"
version = "0.1.0" version = "0.1.0"
authors = ["Runji Wang <wangrunji0408@163.com>"] authors = ["Runji Wang <wangrunji0408@163.com>"]
edition = "2018" edition = "2018"
[dependencies] [dependencies]
"rcore-ulib" = { path = "rcore-ulib" } linked_list_allocator = "0.6"

@ -1,8 +0,0 @@
[package]
name = "rcore-ulib"
version = "0.1.0"
authors = ["WangRunji <wangrunji0408@163.com>"]
edition = "2018"
[dependencies]
linked_list_allocator = "0.6"

@ -2,7 +2,7 @@
#![no_main] #![no_main]
#[macro_use] #[macro_use]
extern crate rcore_ulib; extern crate rcore_user;
macro_rules! color_text { macro_rules! color_text {
($text:expr, $color:expr) => {{ ($text:expr, $color:expr) => {{

@ -2,12 +2,12 @@
#![no_main] #![no_main]
#[macro_use] #[macro_use]
extern crate rcore_ulib; extern crate rcore_user;
// IMPORTANT: Must define main() like this // IMPORTANT: Must define main() like this
#[no_mangle] #[no_mangle]
pub fn main() { pub fn main() {
println!("Hello Rust uCore!"); println!("Hello Rust uCore!");
println!("I am process {}.", rcore_ulib::syscall::sys_getpid()); println!("I am process {}.", rcore_user::syscall::sys_getpid());
println!("hello pass."); println!("hello pass.");
} }

@ -4,12 +4,12 @@
extern crate alloc; extern crate alloc;
#[macro_use] #[macro_use]
extern crate rcore_ulib; extern crate rcore_user;
use alloc::vec::Vec; use alloc::vec::Vec;
use rcore_ulib::io::get_line; use rcore_user::io::get_line;
use rcore_ulib::syscall::{sys_exec, sys_fork, sys_wait}; use rcore_user::syscall::{sys_exec, sys_fork, sys_wait};
// IMPORTANT: Must define main() like this // IMPORTANT: Must define main() like this
#[no_mangle] #[no_mangle]

Loading…
Cancel
Save