Skip to content

Commit 7b54d2c

Browse files
mcpplibs.os 0.4.0: one platform question for a native build and an image; is_openkal (#729)
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
1 parent da12ea7 commit 7b54d2c

3 files changed

Lines changed: 26 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222

2323
### Added
2424

25+
- **mcpplibs.os 0.4.0.** `is_openkal` names a build for the openkal target, as each `is_<platform>` names its own
26+
(`is_image` remains as a deprecated alias); `can_run_on(p)` and `on<P>(f)` ask one platform question of a native
27+
build and an image alike; the platform modules are defined in an image where it can answer them; the effective user
28+
and the creation mask are the kernel's answers. The test member `os` consumes 0.4.0.
2529
- **mcpplibs.os 0.3.1.** A name in the long spelling (`\\?\C:\...`, `\\?\UNC\...`) is the name it spells: `locate` and
2630
every `os::fs` operation through it accept what `fs::extended` produces, which 0.3.0 refused with `errc::invalid`; the
2731
kernel layer is a compatible range. The test member `os` consumes 0.3.1 (it stayed on 0.2.9 when 0.3.0 was registered).

‎pkgs/o/os.lua‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ package = {
3131

3232
xpm = {
3333
linux = {
34+
["0.4.0"] = {
35+
url = {
36+
GLOBAL = "https://github.com/mcpplibs/os/archive/refs/tags/0.4.0.tar.gz",
37+
CN = "https://gitcode.com/mcpp-res/os/releases/download/0.4.0/os-0.4.0.tar.gz",
38+
},
39+
sha256 = "ad0b61b962469166ec2053ad5c1f5a7114278e98edd94cc3c5235d6148a8111a",
40+
},
3441
["0.3.1"] = {
3542
url = {
3643
GLOBAL = "https://github.com/mcpplibs/os/archive/refs/tags/0.3.1.tar.gz",
@@ -129,6 +136,13 @@ package = {
129136
},
130137
},
131138
macosx = {
139+
["0.4.0"] = {
140+
url = {
141+
GLOBAL = "https://github.com/mcpplibs/os/archive/refs/tags/0.4.0.tar.gz",
142+
CN = "https://gitcode.com/mcpp-res/os/releases/download/0.4.0/os-0.4.0.tar.gz",
143+
},
144+
sha256 = "ad0b61b962469166ec2053ad5c1f5a7114278e98edd94cc3c5235d6148a8111a",
145+
},
132146
["0.3.1"] = {
133147
url = {
134148
GLOBAL = "https://github.com/mcpplibs/os/archive/refs/tags/0.3.1.tar.gz",
@@ -227,6 +241,13 @@ package = {
227241
},
228242
},
229243
windows = {
244+
["0.4.0"] = {
245+
url = {
246+
GLOBAL = "https://github.com/mcpplibs/os/archive/refs/tags/0.4.0.tar.gz",
247+
CN = "https://gitcode.com/mcpp-res/os/releases/download/0.4.0/os-0.4.0.tar.gz",
248+
},
249+
sha256 = "ad0b61b962469166ec2053ad5c1f5a7114278e98edd94cc3c5235d6148a8111a",
250+
},
230251
["0.3.1"] = {
231252
url = {
232253
GLOBAL = "https://github.com/mcpplibs/os/archive/refs/tags/0.3.1.tar.gz",

‎tests/examples/os/mcpp.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "os-tests"
77
version = "0.1.0"
88

99
[dependencies.mcpplibs]
10-
os = "0.3.1"
10+
os = "0.4.0"
1111

1212
[indices]
1313
mcpplibs = { path = "../../.." }

0 commit comments

Comments
 (0)