@@ -95,53 +95,6 @@ ME="/koyori"
95
95
HOME="${HO}${ME}" # equal to HOME=/home/koyori
96
96
```
97
97
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
-
145
98
## LICENSE
146
99
147
- MIT License Copyright (c) 2023, Hanaasagi
100
+ MIT License Copyright (c) 2023-2024 , Hanaasagi
0 commit comments