Skip to content

Commit 88b3a1d

Browse files
authored
Merge pull request #1435 from SteveL-MSFT/3.2-p13
Update to version 3.2-preview.13
2 parents cc3cae5 + 999b393 commit 88b3a1d

30 files changed

Lines changed: 126 additions & 99 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ base64 = { version = "0.22" }
148148
# dsc-lib, sshdconfig
149149
chrono = { version = "0.4" }
150150
# dsc, dsc-lib, dsc-bicep-ext, dscecho, registry, runcommandonset, sshdconfig, dsctest, test_group_resource
151-
clap = { version = "4.5", features = ["derive"] }
151+
clap = { version = "4.6", features = ["derive"] }
152152
# dsc
153-
clap_complete = { version = "4.5" }
153+
clap_complete = { version = "4.6" }
154154
# dsc-lib
155155
const-str = {version = "1.1" }
156156
# dsc, registry, dsc-lib-registry, sshdconfig
@@ -192,7 +192,7 @@ regex = { version = "1.12" }
192192
# registry, dsc-lib, dsc-lib-registry, dsctest
193193
registry = { version = "1.3" }
194194
# dsc
195-
rmcp = { version = "0.16" }
195+
rmcp = { version = "1.2" }
196196
# dsc_lib
197197
rt-format = { version = "0.3" }
198198
# dsc, dsc-lib, dsc-bicep-ext, dscecho, registry, dsc-lib-registry, runcommandonset, sshdconfig
@@ -214,11 +214,11 @@ syntect = { version = "5.3", features = ["default-fancy"], default-features = fa
214214
# dsc, process
215215
sysinfo = { version = "0.38" }
216216
# sshdconfig
217-
tempfile = { version = "3.25" }
217+
tempfile = { version = "3.27" }
218218
# dsc, dsc-lib, registry, dsc-lib-registry, sshdconfig
219219
thiserror = { version = "2.0" }
220220
# dsc, dsc-lib, dsc-bicep-ext
221-
tokio = { version = "1.49" }
221+
tokio = { version = "1.50" }
222222
# dsc-bicep-ext
223223
tokio-stream = { version = "0.1" }
224224
# dsc
@@ -244,7 +244,7 @@ tree-sitter-rust = { version = "0.24" }
244244
# registry, dsc-lib-registry, dsctest
245245
utfx = { version = "0.1" }
246246
# dsc-lib
247-
uuid = { version = "1.21", features = ["v4"] }
247+
uuid = { version = "1.22", features = ["v4"] }
248248
# dsc-lib, dsc-lib-jsonschema
249249
url = { version = "2.5" }
250250
# dsc-lib, dsc-lib-jsonschema

dsc-bicep-ext/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "dsc-bicep-ext"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
[[bin]]
77
name = "dsc-bicep-ext"

dsc/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "dsc"
3-
version = "3.2.0-preview.12"
4-
edition = "2021"
3+
version = "3.2.0-preview.13"
4+
edition = "2024"
55

66
[dependencies]
77
# external dependencies

dsc/src/mcp/mcp_server.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ impl Default for McpServer {
3939
#[tool_handler]
4040
impl ServerHandler for McpServer {
4141
fn get_info(&self) -> ServerInfo {
42-
ServerInfo {
43-
capabilities: ServerCapabilities::builder()
42+
let mut info = ServerInfo::new(
43+
ServerCapabilities::builder()
4444
.enable_tools()
45-
.build(),
46-
instructions: Some(t!("mcp.mod.instructions").to_string()),
47-
..Default::default()
48-
}
45+
.build()
46+
);
47+
info.instructions = Some(t!("mcp.mod.instructions").to_string());
48+
info
4949
}
5050

5151
async fn initialize(&self, _request: InitializeRequestParams, _context: RequestContext<RoleServer>) -> Result<InitializeResult, McpError> {

dsc/src/util.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,9 @@ pub fn enable_tracing(trace_level_arg: Option<&TraceLevel>, trace_format_arg: Op
429429
}
430430

431431
// set DSC_TRACE_LEVEL for child processes
432-
env::set_var(DSC_TRACE_LEVEL, tracing_level.to_string().to_ascii_lowercase());
432+
unsafe {
433+
env::set_var(DSC_TRACE_LEVEL, tracing_level.to_string().to_ascii_lowercase());
434+
}
433435
info!("Trace-level is {:?}", tracing_setting.level);
434436
}
435437

@@ -549,7 +551,9 @@ pub fn set_dscconfigroot(config_path: &str) -> String
549551

550552
// Set env var so child processes (of resources) can use it
551553
debug!("{} '{config_root_path}'", t!("util.settingDscConfigRoot"));
552-
env::set_var(DSC_CONFIG_ROOT, config_root_path);
554+
unsafe {
555+
env::set_var(DSC_CONFIG_ROOT, config_root_path);
556+
}
553557

554558
full_path.to_string_lossy().into_owned()
555559
}
@@ -625,11 +629,11 @@ fn parse_input_to_json_value(input: &str, context: &str) -> Result<serde_json::V
625629
/// Returns an error if the input cannot be parsed or is not an object
626630
fn params_to_map(params: &str, context: &str) -> Result<serde_json::Map<String, serde_json::Value>, DscError> {
627631
let value = parse_input_to_json_value(params, context)?;
628-
632+
629633
let Some(map) = value.as_object().cloned() else {
630634
return Err(DscError::Parser(t!("util.parametersNotObject").to_string()));
631635
};
632-
636+
633637
Ok(map)
634638
}
635639

@@ -653,7 +657,7 @@ fn params_to_map(params: &str, context: &str) -> Result<serde_json::Map<String,
653657
/// - The merged result cannot be serialized to JSON
654658
pub fn merge_parameters(file_params: &str, inline_params: &str) -> Result<String, DscError> {
655659
use serde_json::Value;
656-
660+
657661
// Convert both parameter inputs to maps
658662
let mut file_map = params_to_map(file_params, "FileParameters")?;
659663
let inline_map = params_to_map(inline_params, "InlineParameters")?;

lib/dsc-lib-osinfo/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "dsc-lib-osinfo"
33
version = "1.0.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
[lib]
77
doctest = false

lib/dsc-lib-pal/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[package]
44
name = "dsc-lib-pal"
55
version = "0.1.0"
6-
edition = "2021"
6+
edition = "2024"
77

88
[lib]
99
doctest = false

0 commit comments

Comments
 (0)