There is codeine code that builds under 0.15.2, but not under 0.16.0. I believe 0.16.0 will arrive soon, so I am getting a head start looking into what needs to happen. i.e.
zig-pkg/zg-0.15.1-oGqU3J1DtAJhPKw_pU5s8kHGVYDk1leZm4TtO1cvMihq/codegen/ccc.zig:33:25: error: root source file struct 'std' has no member named 'io'
var cc_reader = std.io.Reader.fixed(@embedFile("DerivedCombiningClass.txt"));
codegen/upper.zig:12:36: error: root source file struct 'process' has no member named 'argsWithAllocator'
var args_iter = try std.process.argsWithAllocator(allocator);
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
codegen/fold.zig:17:29: error: root source file struct 'mem' has no member named 'trimRight'
const line = std.mem.trimRight(u8, took, "\n");
I just wanted to get the ball rolling on this. I am not overly familiar with the 0.16 changes yet. I wonder if it is possible to change the code in a way that it would be backwards compatible. aka work with both 0.15.2 and 0.16.0.
--
- In
codegen it is possible to change std.io.Reader.fixed(...) to std.Io.Reader.fixed(...) and it builds with both versions.
std.mem.trimRight can become std.mem.trimEnd and works in both versions.
There is codeine code that builds under 0.15.2, but not under 0.16.0. I believe 0.16.0 will arrive soon, so I am getting a head start looking into what needs to happen. i.e.
```
zig-pkg/zg-0.15.1-oGqU3J1DtAJhPKw_pU5s8kHGVYDk1leZm4TtO1cvMihq/codegen/ccc.zig:33:25: error: root source file struct 'std' has no member named 'io'
var cc_reader = std.io.Reader.fixed(@embedFile("DerivedCombiningClass.txt"));
```
```
codegen/upper.zig:12:36: error: root source file struct 'process' has no member named 'argsWithAllocator'
var args_iter = try std.process.argsWithAllocator(allocator);
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
```
```
codegen/fold.zig:17:29: error: root source file struct 'mem' has no member named 'trimRight'
const line = std.mem.trimRight(u8, took, "\n");
```
I just wanted to get the ball rolling on this. I am not overly familiar with the 0.16 changes yet. I wonder if it is possible to change the code in a way that it would be backwards compatible. aka work with both 0.15.2 and 0.16.0.
--
- In `codegen` it is possible to change `std.io.Reader.fixed(...)` to `std.Io.Reader.fixed(...)` and it builds with both versions.
- `std.mem.trimRight` can become `std.mem.trimEnd` and works in both versions.