-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: separate crowtty bin from libuv dep, fix CI (#342)
The `crowtty` CLI requires `libuv` on Linux systems in order to interact with serial devices. This is why the x86_64 build is now failing on CI, since the bootimage builder depends on `crowtty` in order to run it on the QEMU virtual serial port, but building crowtty requires `libuv`. See: #341 (comment) This commit separates the `crowtty` binary from the `libcrowtty` library, so that only the CLI binary depends on `libuv`. Hopefully this fixes the x86_64 CI build. Fixes #341
- Loading branch information
Showing
15 changed files
with
126 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ jobs: | |
- check | ||
- clippy | ||
- build-bins | ||
- build-x86_64 | ||
- test | ||
- test-host-miri | ||
- docs | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
cargo-features = ["per-package-target", "profile-rustflags"] | ||
|
||
[package] | ||
name = "libcrowtty" | ||
version = "0.1.0" | ||
description = """ | ||
The library parts of crowtty. | ||
crowtty is a host tool, aimed at speaking the sermux protocol with a | ||
simulator or physical target. It allows for receiving tracing messages, | ||
as well as mapping multiplexed "ports" as TCP sockets on the host. | ||
""" | ||
repository = "https://github.com/tosc-rs/mnemos" | ||
homepage = "https://mnemos.dev" | ||
readme = "./README.md" | ||
license = "MIT OR Apache-2.0" | ||
edition = "2021" | ||
|
||
[dependencies.cobs] | ||
version = "0.2" | ||
|
||
[dependencies.clap] | ||
version = "4.0" | ||
features = ["derive", "env"] | ||
|
||
[dependencies.serde] | ||
version = "1.0" | ||
features = ["derive"] | ||
|
||
[dependencies.postcard] | ||
version = "1" | ||
features = ["alloc"] | ||
|
||
[dependencies.owo-colors] | ||
version = "3.5" | ||
features = ["supports-colors"] | ||
|
||
[dependencies.tracing-serde-structured] | ||
git = "https://github.com/hawkw/tracing-serde-structured" | ||
branch = "eliza/span-fields" | ||
default-features = true | ||
|
||
[dependencies.sermux-proto] | ||
path = "../../source/sermux-proto" | ||
features = ["use-std"] | ||
|
||
[dependencies.mnemos-trace-proto] | ||
path = "../../source/trace-proto" | ||
features = ["std"] | ||
|
||
[dependencies.tracing] | ||
version = "0.1.37" | ||
default-features = false | ||
|
||
[dependencies.tracing-subscriber] | ||
version = "0.3.17" | ||
default-features = false | ||
features = ["std"] | ||
|
||
[dependencies.miette] | ||
workspace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# `libcrowtty`: the library parts of crowtty | ||
|
||
[`crowtty`] is a host tool, aimed at speaking the sermux protocol with a simulator | ||
or physical target. It allows for receiving tracing messages, as well as mapping | ||
multiplexed "ports" as TCP sockets on the host. It is the primary way of | ||
connecting to hardware platforms that speak the | ||
sermux-proto over a physical serial port. | ||
|
||
This crate contains the generic, library bits of `crowtty`, without the | ||
command-line application, or code for connecting to serial TTY devices (which | ||
requires `libuv` on Linux). It's factored out primarily so that it can be used | ||
by the [`x86_64-bootimager`] tool to connect to QEMU virtual serial devices. | ||
|
||
[crowtty]: ../crowtty/ | ||
[`x86_64-bootimager`]: ../x86_64-bootimager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"components": { | ||
"mdbook": false, | ||
"changelog": false | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ use std::{ | |
}; | ||
use tracing::level_filters::LevelFilter; | ||
|
||
pub mod connection; | ||
mod keyboard; | ||
mod trace; | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters