Skip to content

Commit b6432a8

Browse files
committed
feat: work on stable rust channel
closes #68
1 parent 22d84e1 commit b6432a8

File tree

5 files changed

+23
-13
lines changed

5 files changed

+23
-13
lines changed

Cargo.lock

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
[features]
77
default = [ ]
88
xcodegen = [ "async", "dirs" ]
9-
daemon = [
9+
daemon = [
1010
"serial",
1111
"compilation",
1212
"logging",
@@ -29,7 +29,7 @@ server = [
2929
"wax",
3030
"shell-words",
3131
"compilation",
32-
"crossbeam-channel"
32+
"crossbeam-channel"
3333
]
3434
lua = [ "mlua", "serial", "simctl", "lazy_static" ]
3535
serial = [ "serde", "serde_json", "serde_yaml" ]
@@ -87,9 +87,9 @@ wax = { version = "0.4.0", optional = true }
8787
lazy_static = { version = "1.4.0", optional = true }
8888
shell-words = { version = "1.1.0", optional = true }
8989
# Other
90-
mlua = { version = "0.7.4", features = ["lua51", "vendored"], optional = true }
90+
mlua = { version = "0.7.4", features = ["lua51", "vendored"], optional = true }
9191
bsp-server = { version = "0.1.*", optional = true }
92-
xcodebuild = { version = "0.1.*", optional = true, features = ["tracing"] }
92+
xcodebuild = { version = "0.1.7", optional = true, features = ["tracing"] }
9393

9494
# Proc feature: processes, processors, disks, components and networks (sysinfo = "0.23.5")
9595
libproc = { version = "0.12.0", optional = true }

src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#![feature(box_syntax)]
2-
#![feature(result_flattening)]
3-
41
#[cfg(feature = "compilation")]
52
pub mod compile;
63

src/types/project/platform.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::str::FromStr;
44
#[cfg(feature = "daemon")]
55
use xcodebuild::parser::BuildSettings;
66

7-
#[derive(Clone, Debug, Default, Deserialize, Serialize, Hash, PartialEq, Eq)]
7+
#[derive(Clone, Debug, Deserialize, Serialize, Hash, PartialEq, Eq)]
88
pub enum Platform {
99
#[serde(rename = "iOS")]
1010
IOS,
@@ -14,10 +14,15 @@ pub enum Platform {
1414
TvOS,
1515
#[serde(rename = "macOS")]
1616
MacOS,
17-
#[default]
1817
Unknown,
1918
}
2019

20+
impl Default for Platform {
21+
fn default() -> Self {
22+
Self::Unknown
23+
}
24+
}
25+
2126
impl Platform {
2227
#[cfg(feature = "daemon")]
2328
pub fn from_identifer(identifer: &str) -> Self {

src/types/project/target_type.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
use super::*;
22

3-
#[derive(Debug, Default, Deserialize, Serialize, Hash, PartialEq, Eq)]
3+
#[derive(Debug, Deserialize, Serialize, Hash, PartialEq, Eq)]
44
pub enum ProjectTargetType {
5-
#[default]
65
#[serde(rename = "application")]
76
Application,
87
#[serde(rename = "application.on-demand-install-capable")]
@@ -59,6 +58,12 @@ pub enum ProjectTargetType {
5958
XPCService,
6059
}
6160

61+
impl Default for ProjectTargetType {
62+
fn default() -> Self {
63+
Self::Application
64+
}
65+
}
66+
6267
impl ProjectTargetType {
6368
#[must_use]
6469
pub fn is_application(&self) -> bool {

0 commit comments

Comments
 (0)