Skip to content

andreiyard/libssh2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libssh2

libssh2 packaged with Zig

Usage

  1. Install as dependency using zig fetch --save git+https://github.com/{repo_name}
  2. Link this library in build.zig
    const exe = b.addExecutable(.{
        .name = "test_name",
        .root_source_file = b.path("src/main.zig"),
        .target = target,
        .optimize = optimize,
    });

    // import libssh2
    const libssh2 = b.dependency("libssh2", .{
        .target = target,
        .optimize = optimize,
    });
    exe.linkLibrary(libssh2.artifact("ssh2"));

    b.installArtifact(exe);
  1. Import using @cImport()

About

libssh2 packaged with Zig

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Zig 97.7%
  • C 2.3%