Skip to content

Commit fa810a3

Browse files
authored
MicroZig 0.15.0 (#667)
* MicroZig 0.15.0 * Revert test expects
1 parent 734acce commit fa810a3

File tree

10 files changed

+19
-19
lines changed

10 files changed

+19
-19
lines changed

build.zig.zon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
.name = .microzig,
33
// Note: This should be changed if you fork microzig!
44
.fingerprint = 0x605a83a849186d0f,
5-
.version = "0.14.3",
6-
.minimum_zig_version = "0.14.1",
5+
.version = "0.15.0",
6+
.minimum_zig_version = "0.15.1",
77
.dependencies = .{
88
.@"build-internals" = .{ .path = "build-internals" },
99
.core = .{ .path = "core" },

examples/nxp/mcx/build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.name = .examples_nxp_mcx,
33
.version = "0.0.0",
44
.fingerprint = 0x345c53e39b0295f5,
5-
.minimum_zig_version = "0.14.1",
5+
.minimum_zig_version = "0.15.1",
66
.dependencies = .{
77
.microzig = .{ .path = "../../.." },
88
},

modules/rtt/build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.name = .rtt,
33
.fingerprint = 0xb40f6cfbe40c891f,
44
.version = "0.0.0",
5-
.minimum_zig_version = "0.14.1",
5+
.minimum_zig_version = "0.15.1",
66
.paths = .{
77
"build.zig",
88
"build.zig.zon",

port/nxp/mcx/build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.name = .mz_port_mcx,
33
.version = "0.0.0",
44
.fingerprint = 0xe43e30911cb3fe37,
5-
.minimum_zig_version = "0.14.1",
5+
.minimum_zig_version = "0.15.1",
66
.dependencies = .{
77
.@"microzig/build-internals" = .{ .path = "../../../build-internals" },
88
.@"mcux-soc-svd" = .{

port/raspberrypi/rp2xxx/build.zig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,6 @@ pub fn init(dep: *std.Build.Dependency) Self {
270270
}
271271

272272
pub fn build(b: *std.Build) !void {
273-
// TODO: construct all bootroms here and expose them via lazy paths: requires zig 0.14
274-
275273
const optimize = b.standardOptimizeOption(.{});
276274
const target = b.standardTargetOptions(.{});
277275

tools/linter/build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.name = .mz_tools_linter,
33
.version = "0.0.0",
44
.fingerprint = 0x334c50d4d1fddc14,
5-
.minimum_zig_version = "0.14.1",
5+
.minimum_zig_version = "0.15.1",
66
.dependencies = .{},
77
.paths = .{
88
"build.zig",

tools/printer/build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.name = .tools_printer,
33
.version = "0.0.0",
44
.fingerprint = 0x72009d00e5692d30,
5-
.minimum_zig_version = "0.14.1",
5+
.minimum_zig_version = "0.15.1",
66
.dependencies = .{
77
.serial = .{
88
.url = "git+https://github.com/ZigEmbeddedGroup/serial#fbd7389ff8bbc9fa362aa74081588755b5d028a0",

tools/regz-wizard/build.zig.zon

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
.name = .tools_regzwizard,
33
.version = "0.0.0",
44
.fingerprint = 0xe9f2d03f97400569,
5-
.minimum_zig_version = "0.14.1",
5+
.minimum_zig_version = "0.15.1",
66
.dependencies = .{
77
.regz = .{ .path = "../regz" },
88
.dvui = .{
9-
.url = "git+https://github.com/david-vanderson/dvui.git#2fd3c7fcd700ea9c0fd96d217d6ff878ba0d02d7",
10-
.hash = "dvui-0.2.0-AQFJmTOVzgAbOn4QEgiYY-6CISQ25dLcsTsmYBWpSteB",
9+
.url = "git+https://github.com/david-vanderson/dvui#b6282bab5ec582dd78b9affda87365ad2185f18a",
10+
.hash = "dvui-0.4.0-dev-AQFJmajB0wA8Is3S1UpcCeZzhvLhn8IpJ3p23RU0FoXu",
1111
},
1212
},
1313
.paths = .{

tools/regz-wizard/src/main.zig

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const gpa = debug_allocator.allocator();
3131
var vfs: VirtualFilesystem = undefined;
3232
var current_gen_file: usize = 0;
3333

34-
pub fn init(win: *dvui.Window) void {
34+
pub fn init(win: *dvui.Window) anyerror!void {
3535
_ = win;
3636
vfs = .init(gpa);
3737
}
@@ -49,13 +49,15 @@ pub fn deinit() void {
4949

5050
// Run each frame to do normal UI
5151
pub fn frame() !dvui.App.Result {
52-
var scaler = try dvui.scale(@src(), .{ .scale = &dvui.currentWindow().content_scale, .pinch_zoom = .global }, .{ .rect = .cast(dvui.windowRect()) });
53-
scaler.deinit();
52+
var scaler = dvui.scale(@src(), .{ .scale = &dvui.currentWindow().content_scale, .pinch_zoom = .global }, .{ .rect = .cast(dvui.windowRect()) });
53+
defer scaler.deinit();
5454

55-
var scroll = try dvui.scrollArea(@src(), .{}, .{ .expand = .both, .color_fill = .fill_window });
55+
var scroll = dvui.scrollArea(@src(), .{}, .{
56+
.expand = .both,
57+
});
5658
defer scroll.deinit();
5759

58-
var vbox = try dvui.box(@src(), .vertical, .{ .expand = .both, .margin = .{ .x = 4 } });
60+
var vbox = try dvui.box(@src(), .{ .vertical = true }, .{ .expand = .both, .margin = .{ .x = 4 } });
5961
defer vbox.deinit();
6062

6163
{

website/content/docs/getting-started.smd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Assuming you've initialized a zig project with `zig init`, or have set one up
2828
yourself, you can add microzig as a dependency with the following command:
2929

3030
```sh
31-
zig fetch --save https://github.com/ZigEmbeddedGroup/microzig/releases/download/0.14.3/microzig.tar.gz
31+
zig fetch --save https://github.com/ZigEmbeddedGroup/microzig/releases/download/0.15.0/microzig.tar.gz
3232
```
3333

3434
Then in your `build.zig`:
@@ -116,4 +116,4 @@ Copy the uf2 file into the mounted drive. Execution should take place immediatel
116116

117117
## Further Resources
118118

119-
- [Zig Language Reference](https://ziglang.org/documentation/0.14.1/)
119+
- [Zig Language Reference](https://ziglang.org/documentation/0.15.1/)

0 commit comments

Comments
 (0)