kcl-lang.io/kpm@v0.8.7-0.20240520061008-9fc4c5efc8c7/docs/kcl.mod.proto (about) 1 syntax = "proto3"; 2 3 message Package { 4 string name = 1; 5 string version = 2; 6 string edition = 3; 7 repeated Dependency dependencies = 4; 8 } 9 10 message Dependency { 11 oneof dependency { 12 GitDependency git = 5; 13 PathDependency path = 6; 14 RegistryDependency registry = 7; 15 } 16 } 17 18 message GitDependency { 19 string git = 8; 20 oneof ident { 21 string version = 9; 22 string commit = 10; 23 string branch = 11; 24 } 25 } 26 27 message PathDependency { 28 string path = 12; 29 string version = 13; 30 } 31 32 message RegistryDependency { 33 string url = 14; 34 string version = 15; 35 }