Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/cargo-rustapi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ predicates = "3.1"
[features]
default = ["remote-spec"]
remote-spec = ["dep:reqwest"]
replay = ["dep:reqwest"]
7 changes: 7 additions & 0 deletions crates/cargo-rustapi/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ enum Commands {
/// Deploy to various platforms
#[command(subcommand)]
Deploy(DeployArgs),

/// Replay debugging commands (time-travel debugging)
#[cfg(feature = "replay")]
#[command(subcommand)]
Replay(commands::ReplayArgs),
}

impl Cli {
Expand All @@ -70,6 +75,8 @@ impl Cli {
Commands::Docs { port } => commands::open_docs(port).await,
Commands::Client(args) => commands::client(args).await,
Commands::Deploy(args) => commands::deploy(args).await,
#[cfg(feature = "replay")]
Commands::Replay(args) => commands::replay(args).await,
}
}
}
5 changes: 5 additions & 0 deletions crates/cargo-rustapi/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ pub use migrate::{migrate, MigrateArgs};
pub use new::{new_project, NewArgs};
pub use run::{run_dev, RunArgs};
pub use watch::{watch, WatchArgs};

#[cfg(feature = "replay")]
mod replay;
#[cfg(feature = "replay")]
pub use replay::{replay, ReplayArgs};
Loading
Loading