Skip to content

Commit ad7e37c

Browse files
authored
chore: release 0.2.0 (#13)
Close: #12
1 parent 017b970 commit ad7e37c

File tree

2 files changed

+2
-49
lines changed

2 files changed

+2
-49
lines changed

README.md

+1-48
Original file line numberDiff line numberDiff line change
@@ -95,53 +95,6 @@ ME="/koyori"
9595
HOME="${HO}${ME}" # equal to HOME=/home/koyori
9696
```
9797

98-
## Installation
99-
100-
Add `dotenv` as dependency in `build.zig.zon`:
101-
102-
```
103-
.{
104-
.name = "my-project",
105-
.version = "0.1.0",
106-
.dependencies = .{
107-
.dotenv = .{
108-
.url = "https://github.com/dying-will-bullet/dotenv/archive/refs/tags/v0.1.1.tar.gz",
109-
.hash = "1220f0f6736020856641d3644ef44f95ce21f3923d5dae7f9ac8658187574d36bcb8"
110-
},
111-
},
112-
.paths = .{""}
113-
}
114-
```
115-
116-
Add `dotenv` as a module in `build.zig`:
117-
118-
```diff
119-
diff --git a/build.zig b/build.zig
120-
index 957f625..66dd12a 100644
121-
--- a/build.zig
122-
+++ b/build.zig
123-
@@ -15,6 +15,9 @@ pub fn build(b: *std.Build) void {
124-
// set a preferred release mode, allowing the user to decide how to optimize.
125-
const optimize = b.standardOptimizeOption(.{});
126-
127-
+ const opts = .{ .target = target, .optimize = optimize };
128-
+ const dotenv_module = b.dependency("dotenv", opts).module("dotenv");
129-
+
130-
const exe = b.addExecutable(.{
131-
.name = "tmp",
132-
// In this case the main source file is merely a path, however, in more
133-
@@ -23,6 +26,8 @@ pub fn build(b: *std.Build) void {
134-
.target = target,
135-
.optimize = optimize,
136-
});
137-
+ exe.addModule("dotenv", dotenv_module);
138-
+ // If you want to modify environment variables.
139-
+ exe.linkSystemLibrary("c");
140-
141-
// This declares intent for the executable to be installed into the
142-
// standard location when the user invokes the "install" step (the default
143-
```
144-
14598
## LICENSE
14699

147-
MIT License Copyright (c) 2023, Hanaasagi
100+
MIT License Copyright (c) 2023-2024, Hanaasagi

build.zig.zon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.{
22
.name = "dotenv",
3-
.version = "0.1.1",
3+
.version = "0.2.0",
44
.dependencies = .{},
55
.paths = .{
66
"build.zig",

0 commit comments

Comments
 (0)