Skip to content

Add ability to specify args for cargo  #248

Closed
@pravic

Description

@pravic

I am very excited about the new plugin version with the enhanced command handling (#165). However I have noticed that the arguments themselves are intended for a target itself rather than for rustc/cargo.

For example, "Rust Enhanced - Run (with args)" actually spawns cargo run -- ARGS rather than cargo run ARGS.

It would be convenient to run a particular binary, example or test, or whatever:

Run (with args): --example one => cargo run --example one
Run (with args): --bin one -- bin-args => cargo run --bin one -- bin-args

Sublime Text Version

Sublime Text 3 (Build 3156)

Rust Enhanced Version

2.8.0

Operating system

OS Name: Microsoft Windows 7 x64
Version: 6.1 Build 7601

References

Are there any other GitHub issues (open or closed) that should be linked here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions