+
Skip to content

stoand/double_slice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DoubleSlice

Startup Time Allocated Lists for Zig

Running Tests

zig build --watch test -Doptimize=ReleaseSafe

Installing the Library

  1. Declare zBench as a dependency in build.zig.zon:

    .{
        .name = "my-project",
        .version = "1.0.0",
        .paths = .{""},
        .dependencies = .{
    +       .double_slice = .{
    +           .url = "https://github.com/stoand/double_slice/archive/<COMMIT>.tar.gz",
    +       },
        },
    }
  2. Add the module in build.zig:

    const std = @import("std");
    
    pub fn build(b: *std.Build) void {
        const target = b.standardTargetOptions(.{});
        const optimize = b.standardOptimizeOption(.{});
    
    +   const opts = .{ .target = target, .optimize = optimize };
    +   const double_slice_module = b.dependency("double_slice", opts).module("double_slice");
    
        const exe = b.addExecutable(.{
            .name = "test",
            .root_source_file = b.path("src/main.zig"),
            .target = target,
            .optimize = optimize,
        });
    +   exe.root_module.addImport("double_slice", double_slice_module);
        exe.install();
    
        ...
    }

About

Startup Time Allocated Lists for Zig

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载