examples: append -server to server names

This keeps server names such as "log" and "graphics" as unambiguous.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-08-17 19:41:50 +08:00
parent 1991a464bd
commit 82c9915ad6
17 changed files with 44 additions and 30 deletions

28
Cargo.lock generated
View file

@ -270,7 +270,7 @@ checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36"
dependencies = [
"atty",
"humantime",
"log 0.4.11",
"log",
"regex",
"termcolor",
]
@ -317,7 +317,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aaf91faf136cb47367fa430cd46e37a788775e7fa104f8b4bcb3861dc389b724"
[[package]]
name = "graphics"
name = "graphics-server"
version = "0.1.0"
dependencies = [
"embedded-graphics",
@ -405,14 +405,6 @@ dependencies = [
"rand 0.7.3",
]
[[package]]
name = "log"
version = "0.1.0"
dependencies = [
"pancurses",
"xous",
]
[[package]]
name = "log"
version = "0.4.11"
@ -422,6 +414,14 @@ dependencies = [
"cfg-if",
]
[[package]]
name = "log-server"
version = "0.1.0"
dependencies = [
"pancurses",
"xous",
]
[[package]]
name = "maybe-uninit"
version = "2.0.0"
@ -563,7 +563,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3058bc37c433096b2ac7afef1c5cdfae49ede0a4ffec3dfc1df1df0959d0ff0"
dependencies = [
"libc",
"log 0.4.11",
"log",
"ncurses",
"pdcurses-sys",
"winreg",
@ -1014,7 +1014,7 @@ dependencies = [
"crc",
"csv",
"env_logger",
"log 0.4.11",
"log",
"xmas-elf",
]
@ -1242,6 +1242,10 @@ dependencies = [
"syn",
]
[[package]]
name = "xtask"
version = "0.1.0"
[[package]]
name = "zero"
version = "0.1.2"

View file

@ -6,10 +6,15 @@ members = [
"xous-rs",
"macros",
"examples/shell",
"examples/graphics",
"examples/log",
"examples/graphics-server",
"examples/log-server",
"xtask",
]
default-members = [
"examples/shell",
"examples/log-server",
"examples/graphics-server",
]
default-members = ["examples/shell", "examples/log", "examples/graphics"]
[profile.release]
codegen-units = 1 # 1 better optimizations

View file

@ -1,5 +1,5 @@
[package]
name = "graphics"
name = "graphics-server"
version = "0.1.0"
authors = ["Sean Cross <sean@xobs.io>"]
edition = "2018"

View file

@ -2,3 +2,8 @@
mod minifb;
#[cfg(not(target_os = "none"))]
pub use crate::backend::minifb::*;
#[cfg(target_os = "none")]
mod betrusted;
#[cfg(target_os = "none")]
pub use crate::backend::betrusted::*;

View file

@ -0,0 +1,13 @@
#[target.riscv32i-unknown-none-elf]
##runner = "riscv64-unknown-elf-gdb -x gdb_init"
#rustflags = [
# "-C", "linker-plugin-lto",
#]
#
#[target.riscv32imac-unknown-none-elf]
#rustflags = [
# "-C", "linker-plugin-lto",
#]
[build]
target = "riscv32imac-unknown-none-elf"

View file

@ -1,5 +1,5 @@
[package]
name = "log"
name = "log-server"
version = "0.1.0"
authors = ["Sean Cross <sean@xobs.io>"]
edition = "2018"

View file

@ -1,13 +0,0 @@
[target.riscv32i-unknown-none-elf]
#runner = "riscv64-unknown-elf-gdb -x gdb_init"
rustflags = [
"-C", "linker-plugin-lto",
]
[target.riscv32imac-unknown-none-elf]
rustflags = [
"-C", "linker-plugin-lto",
]
[build]
target = "riscv32imac-unknown-none-elf"