Home
last modified time | relevance | path

Searched refs:String (Results 1 – 25 of 60) sorted by relevance

123

/DADK/dadk-user/src/parser/
H A Dtask.rs31 pub name: String,
33 pub version: String,
35 pub description: String,
64 name: String, in new()
65 version: String, in new()
66 description: String, in new()
192 pub fn name_version(&self) -> String { in name_version()
200 pub fn name_version_env(&self) -> String { in name_version_uppercase() argument
204 pub fn name_version_uppercase(name: &str, version: &str) -> String { in name_version_uppercase()
55 new( name: String, version: String, description: String, rust_target: Option<String>, task_type: TaskType, depends: Vec<Dependency>, build: BuildConfig, install: InstallConfig, clean: CleanConfig, envs: Option<Vec<TaskEnv>>, build_once: bool, install_once: bool, target_arch: Option<Vec<TargetArch>>, ) -> Self new() argument
56 new( name: String, version: String, description: String, rust_target: Option<String>, task_type: TaskType, depends: Vec<Dependency>, build: BuildConfig, install: InstallConfig, clean: CleanConfig, envs: Option<Vec<TaskEnv>>, build_once: bool, install_once: bool, target_arch: Option<Vec<TargetArch>>, ) -> Self new() argument
57 new( name: String, version: String, description: String, rust_target: Option<String>, task_type: TaskType, depends: Vec<Dependency>, build: BuildConfig, install: InstallConfig, clean: CleanConfig, envs: Option<Vec<TaskEnv>>, build_once: bool, install_once: bool, target_arch: Option<Vec<TargetArch>>, ) -> Self new() argument
58 new( name: String, version: String, description: String, rust_target: Option<String>, task_type: TaskType, depends: Vec<Dependency>, build: BuildConfig, install: InstallConfig, clean: CleanConfig, envs: Option<Vec<TaskEnv>>, build_once: bool, install_once: bool, target_arch: Option<Vec<TargetArch>>, ) -> Self new() argument
98 validate(&mut self) -> Result<(), String> validate() argument
132 validate_depends(&self) -> Result<(), String> validate_depends() argument
145 validate_envs(&self) -> Result<(), String> validate_envs() argument
154 validate_target_arch(&self) -> Result<(), String> validate_target_arch() argument
170 validate_build_type(&self) -> Result<(), String> validate_build_type() argument
188 name_version(&self) -> String name_version() argument
196 name_version_env(&self) -> String name_version_env() argument
246 validate(&self) -> Result<(), String> validate() argument
269 validate(&self) -> Result<(), String> validate() argument
295 validate(&self) -> Result<(), String> validate() argument
315 new(name: String, version: String) -> Self new() argument
319 validate(&self) -> Result<(), String> validate() argument
334 name_version(&self) -> String name_version() argument
349 validate(&mut self) -> Result<(), String> validate() argument
376 validate(&mut self) -> Result<(), String> validate() argument
402 validate(&self) -> Result<(), String> validate() argument
428 new(key: String, value: String) -> Self new() argument
445 validate(&self) -> Result<(), String> validate() argument
499 into(self) -> String into() argument
H A Dtask.rs31 pub name: String,
33 pub version: String,
35 pub description: String,
64 name: String, in new() argument
65 version: String, in new() argument
66 description: String, in new() argument
192 pub fn name_version(&self) -> String { in validate_build_type()
200 pub fn name_version_env(&self) -> String { in name_version()
204 pub fn name_version_uppercase(name: &str, version: &str) -> String {
67 new( name: String, version: String, description: String, rust_target: Option<String>, task_type: TaskType, depends: Vec<Dependency>, build: BuildConfig, install: InstallConfig, clean: CleanConfig, envs: Option<Vec<TaskEnv>>, build_once: bool, install_once: bool, target_arch: Option<Vec<TargetArch>>, ) -> Self new() argument
107 validate(&mut self) -> Result<(), String> validate() argument
141 validate_depends(&self) -> Result<(), String> validate_depends() argument
154 validate_envs(&self) -> Result<(), String> validate_envs() argument
163 validate_target_arch(&self) -> Result<(), String> validate_target_arch() argument
179 validate_build_type(&self) -> Result<(), String> validate_build_type() argument
197 name_version(&self) -> String name_version() argument
205 name_version_env(&self) -> String name_version_env() argument
209 name_version_uppercase(name: &str, version: &str) -> String name_version_uppercase() argument
273 validate(&self) -> Result<(), String> validate() argument
304 validate(&self) -> Result<(), String> validate() argument
338 validate(&self) -> Result<(), String> validate() argument
366 new(name: String, version: String) -> Self new() argument
370 validate(&self) -> Result<(), String> validate() argument
385 name_version(&self) -> String name_version() argument
400 validate(&mut self) -> Result<(), String> validate() argument
493 validate(&mut self) -> Result<(), String> validate() argument
519 validate(&self) -> Result<(), String> validate() argument
545 new(key: String, value: String) -> Self new() argument
562 validate(&self) -> Result<(), String> validate() argument
H A Dtask.rs31 pub name: String,
33 pub version: String,
35 pub description: String,
64 name: String, in new() argument
65 version: String, in new() argument
66 description: String, in new() argument
192 pub fn name_version(&self) -> String { in validate_build_type()
200 pub fn name_version_env(&self) -> String { in name_version()
204 pub fn name_version_uppercase(name: &str, version: &str) -> String { in name_version_env() argument
63 new( name: String, version: String, description: String, rust_target: Option<String>, task_type: TaskType, depends: Vec<Dependency>, build: BuildConfig, install: InstallConfig, clean: CleanConfig, envs: Option<Vec<TaskEnv>>, build_once: bool, install_once: bool, target_arch: Option<Vec<TargetArch>>, ) -> Self new() argument
106 validate(&mut self) -> Result<(), String> validate() argument
140 validate_depends(&self) -> Result<(), String> validate_depends() argument
153 validate_envs(&self) -> Result<(), String> validate_envs() argument
162 validate_target_arch(&self) -> Result<(), String> validate_target_arch() argument
178 validate_build_type(&self) -> Result<(), String> validate_build_type() argument
196 name_version(&self) -> String name_version() argument
208 name_version_uppercase(name: &str, version: &str) -> String name_version_uppercase() argument
272 validate(&self) -> Result<(), String> validate() argument
303 validate(&self) -> Result<(), String> validate() argument
337 validate(&self) -> Result<(), String> validate() argument
365 new(name: String, version: String) -> Self new() argument
369 validate(&self) -> Result<(), String> validate() argument
384 name_version(&self) -> String name_version() argument
399 validate(&mut self) -> Result<(), String> validate() argument
492 validate(&mut self) -> Result<(), String> validate() argument
518 validate(&self) -> Result<(), String> validate() argument
544 new(key: String, value: String) -> Self new() argument
561 validate(&self) -> Result<(), String> validate() argument
615 into(self) -> String into() argument
H A Dconfig.rs
H A Dconfig.rs
H A Dtask.rs31 pub name: String,
33 pub version: String,
35 pub description: String,
64 name: String, in new() argument
65 version: String, in new() argument
66 description: String, in new() argument
192 pub fn name_version(&self) -> String { in name_version() argument
200 pub fn name_version_env(&self) -> String { in name_version_env() argument
204 pub fn name_version_uppercase(name: &str, version: &str) -> String { in name_version_uppercase() argument
/DADK/dadk-config/src/common/
H A Dtask.rs11 pub source_path: String,
13 pub branch: Option<String>,
15 pub revision: Option<String>,
48 pub build_command: Option<String>,
60 build_command: Option<String>,
114 pub clean_command: Option<String>, in trim()
119 pub fn new(clean_command: Option<String>) -> Self {
138 pub name: String, in validate()
140 pub version: String, in validate()
145 pub fn new(name: String, versio
131 new(name: String, version: String) -> Self new() argument
150 name_version(&self) -> String name_version() argument
168 new(key: String, value: String) -> Self new() argument
[all...]
H A Dtask.rs11 pub source_path: String,
13 pub branch: Option<String>,
15 pub revision: Option<String>,
48 pub build_command: Option<String>,
60 build_command: Option<String>, in new() argument
114 pub clean_command: Option<String>,
119 pub fn new(clean_command: Option<String>) -> Self { in new()
138 pub name: String,
140 pub version: String,
145 pub fn new(name: String, version: String) -> Self { in new() argument
[all …]
H A Dtarget_arch.rs18 type Error = String; in default()
40 impl From<TargetArch> for String {
52 let s = String::deserialize(deserializer)?; in deserialize()
70 let string: String = Into::into(*self); in serialize()
116 let x86_64: String = TargetArch::X86_64.into(); in test_into_string()
119 let riscv64: String = TargetArch::RiscV64.into(); in test_into_string()
43 into(self) -> String into() argument
H A Dtarget_arch.rs18 type Error = String;
40 impl From<TargetArch> for String { in from()
52 let s = String::deserialize(deserializer)?; in deserialize()
70 let string: String = Into::into(*self);
116 let x86_64: String = TargetArch::X86_64.into();
119 let riscv64: String = TargetArch::RiscV64.into(); in test_deserialize_valid()
37 impl From<TargetArch> for String { global() implementation
H A Dtarget_arch.rs18 type Error = String;
40 impl From<TargetArch> for String { implementation
52 let s = String::deserialize(deserializer)?; in deserialize()
70 let string: String = Into::into(*self); in serialize()
116 let x86_64: String = TargetArch::X86_64.into(); in test_into_string()
119 let riscv64: String = TargetArch::RiscV64.into(); in test_into_string()
/DADK/dadk-user/src/console/
H A Delements.rs
H A Dmod.rs
H A Dmod.rs
H A Dnew_config.rs
/DADK/dadk-user/src/utils/
H A Dstdio.rs5 pub fn stderr_to_lines(stderr: &[u8]) -> Vec<String> { in stderr_to_lines() argument
6 let stderr = String::from_utf8_lossy(stderr); in stderr_to_lines()
12 pub fn tail_n_str(lines: Vec<String>, n: usize) -> String { in tail_n_str() argument
13 let mut result = String::new(); in tail_n_str()
/DADK/dadk-config/src/boot/
H A Duboot.rs12 pub download_url: String,
16 pub version: String,
25 pub path_prefix: String,
46 pub fn full_download_url(&self, target_arch: TargetArch) -> String { in full_download_url() argument
55 fn default_download_url() -> String { in default_download_url()
59 fn default_version() -> String { in default_version()
63 fn default_path_prefix() -> String { in default_path_prefix()
/DADK/dadk-user/src/executor/
H A Dsource.rs25 url: String,
27 branch: Option<String>,
29 revision: Option<String>,
33 pub fn new(url: String, branch: Option<String>, revision: Option<String>) -> Self { in new()
91 /// - `Err(String)` - 失败,错误信息 in prepare()
92 pub fn prepare(&self, target_dir: &CacheDir) -> Result<(), String> { in prepare()
122 fn check_repo(&self, target_dir: &CacheDir) -> Result<bool, String> { in check_repo()
139 let mut r = String in check_repo()
31 new(url: String, branch: Option<String>, revision: Option<String>) -> Self new() argument
41 validate(&mut self) -> Result<(), String> validate() argument
90 prepare(&self, target_dir: &CacheDir) -> Result<(), String> prepare() argument
120 check_repo(&self, target_dir: &CacheDir) -> Result<bool, String> check_repo() argument
149 set_url(&self, target_dir: &CacheDir) -> Result<(), String> set_url() argument
177 checkout(&self, target_dir: &CacheDir) -> Result<(), String> checkout() argument
254 clone_repo(&self, cache_dir: &CacheDir) -> Result<(), String> clone_repo() argument
313 set_fetch_config(&self, target_dir: &CacheDir) -> Result<(), String> set_fetch_config() argument
337 unshallow(&self, target_dir: &CacheDir) -> Result<(), String> unshallow() argument
366 is_shallow(&self, target_dir: &CacheDir) -> Result<bool, String> is_shallow() argument
389 fetch_all(&self, target_dir: &CacheDir) -> Result<(), String> fetch_all() argument
416 pull(&self, target_dir: &CacheDir) -> Result<(), String> pull() argument
463 validate(&self, expect_file: Option<bool>) -> Result<(), String> validate() argument
500 validate(&self) -> Result<(), String> validate() argument
529 download_unzip(&self, target_dir: &CacheDir) -> Result<(), String> download_unzip() argument
604 unzip(&self) -> Result<(), String> unzip() argument
[all...]
H A Dsource.rs25 url: String,
27 branch: Option<String>,
29 revision: Option<String>,
33 pub fn new(url: String, branch: Option<String>, revision: Option<String>) -> Self { in new() argument
92 pub fn prepare(&self, target_dir: &CacheDir) -> Result<(), String> { in prepare() argument
122 fn check_repo(&self, target_dir: &CacheDir) -> Result<bool, String> { in check_repo() argument
139 let mut r = String::from_utf8(output.stdout).unwrap(); in check_repo()
151 fn set_url(&self, target_dir: &CacheDir) -> Result<(), String> { in set_url() argument
179 fn checkout(&self, target_dir: &CacheDir) -> Result<(), String> { in checkout() argument
191 let do_checkout = || -> Result<(), String> { in checkout()
[all …]
/DADK/dadk-config/src/
H A Dutils.rs12 pub fn split_to_kv_array(args: &str) -> Result<Vec<String>> { in split_to_kv_array() argument
16 let mut joined = Vec::<String>::new(); in split_to_kv_array()
39 array: &mut Vec<String>, in apply_kv_array() argument
40 args: &Vec<String>, in apply_kv_array() argument
57 let mut multi_value_key_strings: IndexMap<String, Vec<String>> = IndexMap::new(); in apply_kv_array()
110 fn infer_multi_value_keys(array: &Vec<String>, separator: &str) -> IndexSet<String> { in infer_multi_value_keys() argument
129 pub fn get_key(item: &str, separator: &str) -> Option<String> { in get_key() argument
/DADK/dadk-config/src/user/
H A Dmod.rs26 pub name: String,
28 pub version: String,
30 pub description: String,
/DADK/dadk/src/console/
H A Dmod.rs24 pub manifest_path: String,
28 pub workdir: String,
/DADK/dadk/src/actions/rootfs/
H A Dloopdev.rs13 loop_device_path: Option<String>,
22 pub fn dev_path(&self) -> Option<&String> { in dev_path() argument
42 let loop_device = String::from_utf8(output.stdout)?.trim().to_string(); in attach()
75 let output = String::from_utf8(cmd.stdout)?; in attach_by_exists()
161 loop_device_path: Option<String>,
199 ) -> Result<String> { in __loop_device_path_by_disk_image_path() argument
/DADK/dadk-config/src/boot/hypervisor/
H A Dqemu.rs25 path_prefix: Option<String>,
27 args: String,
31 pub no_graphic_args: String,
39 pub fn path(&self, arch: TargetArch) -> String { in path() argument
49 pub fn apply_qemu_args(&mut self, args: &Vec<String>) -> Result<()> { in apply_qemu_args()
66 pub fn args(&self) -> String { in args() argument
/DADK/dadk-config/src/rootfs/
H A Dfstype.rs14 let mut s = String::deserialize(deserializer)?; in deserialize()
29 let json = Value::String(input.to_string()); in deserialize_fs_type()

123