Skip to content

Commit dfdf6e7

Browse files
(GH-1153) Rename security_context_lib to dsc-lib-security_context
This change renames the `security_context_lib` crate to `dsc-lib-security_context`. This is to support eventual publishing of the crates. This crate is a dependency not only for the `registry` resource but also the `dsc-lib` crate. When we implement the Rust RDK, we will need to publish the library crates, and this ensures the naming is both consistent and easily discoverable. This change makes the requisite updates to cargo manifests, Rust code, and the build script.
1 parent a97f033 commit dfdf6e7

File tree

8 files changed

+42
-42
lines changed

8 files changed

+42
-42
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ members = [
1313
"resources/registry",
1414
"lib/dsc-lib-registry",
1515
"resources/runcommandonset",
16-
"lib/security_context_lib",
16+
"lib/dsc-lib-security_context",
1717
"resources/sshdconfig",
1818
"tools/dsctest",
1919
"tools/test_group_resource",
@@ -35,7 +35,7 @@ default-members = [
3535
"resources/registry",
3636
"lib/dsc-lib-registry",
3737
"resources/runcommandonset",
38-
"lib/security_context_lib",
38+
"lib/dsc-lib-security_context",
3939
"resources/sshdconfig",
4040
"tools/dsctest",
4141
"tools/test_group_resource",
@@ -59,7 +59,7 @@ Windows = [
5959
"resources/registry",
6060
"lib/dsc-lib-registry",
6161
"resources/runcommandonset",
62-
"lib/security_context_lib",
62+
"lib/dsc-lib-security_context",
6363
"resources/sshdconfig",
6464
"tools/dsctest",
6565
"tools/test_group_resource",
@@ -75,7 +75,7 @@ macOS = [
7575
"resources/osinfo",
7676
"resources/process",
7777
"resources/runcommandonset",
78-
"lib/security_context_lib",
78+
"lib/dsc-lib-security_context",
7979
"resources/sshdconfig",
8080
"tools/dsctest",
8181
"tools/test_group_resource",
@@ -91,7 +91,7 @@ Linux = [
9191
"resources/osinfo",
9292
"resources/process",
9393
"resources/runcommandonset",
94-
"lib/security_context_lib",
94+
"lib/dsc-lib-security_context",
9595
"resources/sshdconfig",
9696
"tools/dsctest",
9797
"tools/test_group_resource",
@@ -129,15 +129,15 @@ ctrlc = { version = "3.5" }
129129
derive_builder = { version = "0.20" }
130130
# dsc, dsc-lib
131131
indicatif = { version = "0.18" }
132-
# security_context_lib::windows
132+
# dsc-lib-security_context::windows
133133
is_elevated = { version = "0.1" }
134134
# dsc, dsc-lib
135135
jsonschema = { version = "0.33", default-features = false }
136136
# dsc-lib
137137
linked-hash-map = { version = "0.5" }
138138
# dsc-lib
139139
murmurhash64 = { version = "0.3" }
140-
# security_context_lib::not_windows
140+
# dsc-lib-security_context::not_windows
141141
nix = { version = "0.30" }
142142
# dsc-lib
143143
num-traits = { version = "0.2" }
@@ -205,7 +205,7 @@ static_vcruntime = { version = "2.0" }
205205
# Workspace crates as dependencies
206206
dsc-lib = { path = "lib/dsc-lib" }
207207
dsc-lib-osinfo = { path = "lib/dsc-lib-osinfo" }
208-
security_context_lib = { path = "lib/security_context_lib" }
208+
dsc-lib-security_context = { path = "lib/dsc-lib-security_context" }
209209
tree-sitter-dscexpression = { path = "grammars/tree-sitter-dscexpression" }
210210
dsc-lib-registry = { path = "lib/dsc-lib-registry" }
211211
tree-sitter-ssh-server-config = { path = "grammars/tree-sitter-ssh-server-config" }

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ if (!$SkipBuild) {
356356
".",
357357
"grammars/tree-sitter-dscexpression",
358358
"grammars/tree-sitter-ssh-server-config",
359-
"lib/security_context_lib",
359+
"lib/dsc-lib-security_context",
360360
"lib/dsc-lib-osinfo",
361361
"lib/dsc-lib",
362362
"dsc",

lib/security_context_lib/Cargo.toml renamed to lib/dsc-lib-security_context/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "security_context_lib"
2+
name = "dsc-lib-security_context"
33
version = "0.1.0"
44
edition = "2021"
55

File renamed without changes.

lib/dsc-lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ uuid = { workspace = true }
4040
which = { workspace = true }
4141
# workspace crate dependencies
4242
dsc-lib-osinfo = { workspace = true }
43-
security_context_lib = { workspace = true }
43+
dsc-lib-security_context = { workspace = true }
4444
tree-sitter-dscexpression = { workspace = true }
4545

4646
[dev-dependencies]

lib/dsc-lib/src/configure/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use chrono::{DateTime, Local};
55
use crate::{configure::config_doc::{ExecutionKind, UserFunctionDefinition}, extensions::dscextension::DscExtension};
6-
use security_context_lib::{get_security_context, SecurityContext};
6+
use dsc_lib_security_context::{get_security_context, SecurityContext};
77
use serde_json::{Map, Value};
88
use std::{collections::HashMap, path::PathBuf};
99

lib/dsc-lib/src/configure/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use self::depends_on::get_resource_invocation_order;
2020
use self::config_result::{ConfigurationExportResult, ConfigurationGetResult, ConfigurationSetResult, ConfigurationTestResult};
2121
use self::constraints::{check_length, check_number_limits, check_allowed_values};
2222
use rust_i18n::t;
23-
use security_context_lib::{SecurityContext, get_security_context};
23+
use dsc_lib_security_context::{SecurityContext, get_security_context};
2424
use serde_json::{Map, Value};
2525
use std::path::PathBuf;
2626
use std::collections::HashMap;

0 commit comments

Comments
 (0)