Skip to content

Not clear how to [patch] sources other than crates-io #4499

Closed
@frankier

Description

@frankier

So I think this might be a documentation bug rather than anything else. On the page: http://doc.crates.io/manifest.html#the-patch-section

Each key after [patch] is a URL of the source that's being patched, or crates-io if you're modifying the https://crates.io registry. In the example above crates-io could be replaced with a git URL such as https://github.com/rust-lang-nursery/log.

So after reading this, there are two thing you might try. If you're not that familiar with toml, then you might try the following:

[patch.https://github.com/rust-lang-nursery/log]
...

This is not valid toml. Another thing you might try is

[patch]
"https://github.com/rust-lang-nursery/log" = { log = { path = "/path/to/log/" } }

But this is ignored ("warning: unused manifest key: patch")

Ideally there would be a working example in the docs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions