@@ -777,6 +777,13 @@ pub struct TomlDetailedDependency<P: Clone = String> {
777
777
#[ serde( rename = "default_features" ) ]
778
778
pub default_features2 : Option < bool > ,
779
779
pub package : Option < PackageName > ,
780
+ /// `patches = [<path>, ...]` for specifying patch files (unstable).
781
+ ///
782
+ /// Paths of patches are relative to the file it appears in.
783
+ /// If that's a `Cargo.toml`, they'll be relative to that TOML file,
784
+ /// and if it's a `.cargo/config.toml` file, they'll be relative to the
785
+ /// parent directory of that file.
786
+ pub patches : Option < Vec < P > > ,
780
787
pub public : Option < bool > ,
781
788
782
789
/// One or more of `bin`, `cdylib`, `staticlib`, `bin:<name>`.
@@ -815,6 +822,7 @@ impl<P: Clone> Default for TomlDetailedDependency<P> {
815
822
default_features : Default :: default ( ) ,
816
823
default_features2 : Default :: default ( ) ,
817
824
package : Default :: default ( ) ,
825
+ patches : Default :: default ( ) ,
818
826
public : Default :: default ( ) ,
819
827
artifact : Default :: default ( ) ,
820
828
lib : Default :: default ( ) ,
0 commit comments