For instance, you can target a repository and even a specific commit like this in gour cargo.toml file:
[dependencies] package = { git = "https://github.com/...../something.git", rev = "commit_hash_like_9876541_for_instance" }
Don't specify the git repo directly in dependencies unless it's an unpublished crate.
For instance, you can target a repository and even a specific commit like this in gour cargo.toml file: