Skip to content

Commit ea0755c

Browse files
authored
Merge pull request #98 from Tuntii/time-travel-debugging
Add replay (time-travel debugging) feature
2 parents 8a25c33 + fcbcdb0 commit ea0755c

File tree

28 files changed

+4113
-2
lines changed

28 files changed

+4113
-2
lines changed

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cargo-rustapi/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,4 @@ predicates = "3.1"
5353
[features]
5454
default = ["remote-spec"]
5555
remote-spec = ["dep:reqwest"]
56+
replay = ["dep:reqwest"]

crates/cargo-rustapi/src/cli.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ enum Commands {
5454
/// Deploy to various platforms
5555
#[command(subcommand)]
5656
Deploy(DeployArgs),
57+
58+
/// Replay debugging commands (time-travel debugging)
59+
#[cfg(feature = "replay")]
60+
#[command(subcommand)]
61+
Replay(commands::ReplayArgs),
5762
}
5863

5964
impl Cli {
@@ -70,6 +75,8 @@ impl Cli {
7075
Commands::Docs { port } => commands::open_docs(port).await,
7176
Commands::Client(args) => commands::client(args).await,
7277
Commands::Deploy(args) => commands::deploy(args).await,
78+
#[cfg(feature = "replay")]
79+
Commands::Replay(args) => commands::replay(args).await,
7380
}
7481
}
7582
}

crates/cargo-rustapi/src/commands/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@ pub use migrate::{migrate, MigrateArgs};
2121
pub use new::{new_project, NewArgs};
2222
pub use run::{run_dev, RunArgs};
2323
pub use watch::{watch, WatchArgs};
24+
25+
#[cfg(feature = "replay")]
26+
mod replay;
27+
#[cfg(feature = "replay")]
28+
pub use replay::{replay, ReplayArgs};

0 commit comments

Comments
 (0)