Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ the claim can be checked rather than repeated.

```toml
[dependencies]
openkal-musl = "0.3.0"
openkal-musl = "0.3.1"
```

It names no implementation and no platform: a C library is the one consumer that
Expand Down
8 changes: 4 additions & 4 deletions mcpp.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
namespace = "mcpplibs"
name = "openkal-musl"
version = "0.3.0"
version = "0.3.1"
description = "musl 1.2.5 redirected onto openkal: one C library, ported once, above every implementation of the specification rather than above one kernel."
license = "Apache-2.0"
authors = ["mcpplibs"]
Expand All @@ -23,13 +23,13 @@ openkal = "0.5.1"
#
# The consequence for a program is that it names this package and nothing else.
[target.'cfg(os = "linux")'.dependencies]
openkal-linux = { path = "../openkal-linux", features = ["standalone"] }
openkal-linux = { version = "0.5.1", features = ["standalone"] }

[target.'cfg(os = "macos")'.dependencies]
openkal-macos = { path = "../openkal-macos", features = ["standalone"] }
openkal-macos = { version = "0.3.1", features = ["standalone"] }

[target.'cfg(windows)'.dependencies]
openkal-windows = { path = "../openkal-windows", features = ["standalone"] }
openkal-windows = { version = "0.1.1", features = ["standalone"] }

# The feature macros musl's own build establishes.
#
Expand Down
13 changes: 13 additions & 0 deletions tools/working-trees.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,17 @@ point() {
point "$here/mcpp.toml"
point "$beside/$implementation/mcpp.toml"

# And this package's own reference to the implementation. It names a version,
# because a published package must: a path names a directory that exists in the
# working tree it was written in and nowhere else, and a consumer resolving from
# the index would be handed a manifest pointing at nothing. The feature travels
# with the version, because a program above this library carries no other
# runtime and that is what the feature states.
impl_path="$(native "$beside/$implementation")"
sed "s|^$implementation = .*$|$implementation = { path = \"$impl_path\", features = [\"standalone\"] }|" \
"$here/mcpp.toml" > "$here/mcpp.toml.next"
mv "$here/mcpp.toml.next" "$here/mcpp.toml"
echo "pointed this package at $implementation's working tree"
sed -n '/^\[target/,/^$/p' "$here/mcpp.toml"

echo "$implementation"
Loading