Spaces:
Sleeping
Sleeping
init
Browse files- Dockerfile +12 -0
- Manifest.toml +387 -0
- Project.toml +8 -0
- app.jl +17 -0
- server.jl +5 -0
Dockerfile
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
ARG JULIA_VERSION=1.10.0-beta1
|
2 |
+
# The environment varialbe `JUGSAW_SERVER=DOCKER` turns the local mode off
|
3 |
+
ARG JUGSAW_SERVER=DOCKER
|
4 |
+
FROM julia:$JULIA_VERSION
|
5 |
+
|
6 |
+
# FIXME: no need to develop Jugsaw once it is registered
|
7 |
+
COPY . /app
|
8 |
+
WORKDIR /app
|
9 |
+
RUN julia --project=/app -e "using Pkg; Pkg.instantiate()"
|
10 |
+
|
11 |
+
EXPOSE 7860
|
12 |
+
ENTRYPOINT ["julia", "--project=/app", "-e", "import Jugsaw; include(\"app.jl\"); Jugsaw.Server.serve(Jugsaw.APP, port=7860);"]
|
Manifest.toml
ADDED
@@ -0,0 +1,387 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This file is machine-generated - editing it directly is not advised
|
2 |
+
|
3 |
+
julia_version = "1.9.2"
|
4 |
+
manifest_format = "2.0"
|
5 |
+
project_hash = "de0c1fce534191ff6f269b85fa682fb0ad6079c4"
|
6 |
+
|
7 |
+
[[deps.AbstractTrees]]
|
8 |
+
git-tree-sha1 = "faa260e4cb5aba097a73fab382dd4b5819d8ec8c"
|
9 |
+
uuid = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
|
10 |
+
version = "0.4.4"
|
11 |
+
|
12 |
+
[[deps.ArgTools]]
|
13 |
+
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
|
14 |
+
version = "1.1.1"
|
15 |
+
|
16 |
+
[[deps.Artifacts]]
|
17 |
+
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
|
18 |
+
|
19 |
+
[[deps.Base64]]
|
20 |
+
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
|
21 |
+
|
22 |
+
[[deps.BitFlags]]
|
23 |
+
git-tree-sha1 = "43b1a4a8f797c1cddadf60499a8a077d4af2cd2d"
|
24 |
+
uuid = "d1d4a3ce-64b1-5f1a-9ba4-7e7e69966f35"
|
25 |
+
version = "0.1.7"
|
26 |
+
|
27 |
+
[[deps.CloudEvents]]
|
28 |
+
deps = ["JSON3", "TimeZones", "URIs", "UUIDs"]
|
29 |
+
git-tree-sha1 = "a36e01a03bb89689c9e4ba8b407c2d735b5ed6ef"
|
30 |
+
uuid = "d3baf920-4533-4796-be79-acb40839d791"
|
31 |
+
version = "0.1.1"
|
32 |
+
|
33 |
+
[[deps.CodeTracking]]
|
34 |
+
deps = ["InteractiveUtils", "UUIDs"]
|
35 |
+
git-tree-sha1 = "d730914ef30a06732bdd9f763f6cc32e92ffbff1"
|
36 |
+
uuid = "da1fd8a2-8d9e-5ec2-8556-3022fb5608a2"
|
37 |
+
version = "1.3.1"
|
38 |
+
|
39 |
+
[[deps.CodecZlib]]
|
40 |
+
deps = ["TranscodingStreams", "Zlib_jll"]
|
41 |
+
git-tree-sha1 = "02aa26a4cf76381be7f66e020a3eddeb27b0a092"
|
42 |
+
uuid = "944b1d66-785c-5afd-91f1-9de20f533193"
|
43 |
+
version = "0.7.2"
|
44 |
+
|
45 |
+
[[deps.Compat]]
|
46 |
+
deps = ["UUIDs"]
|
47 |
+
git-tree-sha1 = "4e88377ae7ebeaf29a047aa1ee40826e0b708a5d"
|
48 |
+
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20"
|
49 |
+
version = "4.7.0"
|
50 |
+
|
51 |
+
[deps.Compat.extensions]
|
52 |
+
CompatLinearAlgebraExt = "LinearAlgebra"
|
53 |
+
|
54 |
+
[deps.Compat.weakdeps]
|
55 |
+
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
|
56 |
+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
|
57 |
+
|
58 |
+
[[deps.ConcurrentUtilities]]
|
59 |
+
deps = ["Serialization", "Sockets"]
|
60 |
+
git-tree-sha1 = "5372dbbf8f0bdb8c700db5367132925c0771ef7e"
|
61 |
+
uuid = "f0e56b4a-5159-44fe-b623-3e5288b988bb"
|
62 |
+
version = "2.2.1"
|
63 |
+
|
64 |
+
[[deps.DaprClients]]
|
65 |
+
deps = ["HTTP", "JSON3", "URIs"]
|
66 |
+
git-tree-sha1 = "b917a042d3cdf0a7a63cd23ba479a4aa62d4acdf"
|
67 |
+
uuid = "f4b2537f-2a16-4095-98fc-a229818e8b13"
|
68 |
+
version = "0.1.2"
|
69 |
+
|
70 |
+
[[deps.DataStructures]]
|
71 |
+
deps = ["Compat", "InteractiveUtils", "OrderedCollections"]
|
72 |
+
git-tree-sha1 = "cf25ccb972fec4e4817764d01c82386ae94f77b4"
|
73 |
+
uuid = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
|
74 |
+
version = "0.18.14"
|
75 |
+
|
76 |
+
[[deps.Dates]]
|
77 |
+
deps = ["Printf"]
|
78 |
+
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"
|
79 |
+
|
80 |
+
[[deps.Distributed]]
|
81 |
+
deps = ["Random", "Serialization", "Sockets"]
|
82 |
+
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"
|
83 |
+
|
84 |
+
[[deps.DocStringExtensions]]
|
85 |
+
deps = ["LibGit2"]
|
86 |
+
git-tree-sha1 = "2fb1e02f2b635d0845df5d7c167fec4dd739b00d"
|
87 |
+
uuid = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
|
88 |
+
version = "0.9.3"
|
89 |
+
|
90 |
+
[[deps.Downloads]]
|
91 |
+
deps = ["ArgTools", "FileWatching", "LibCURL", "NetworkOptions"]
|
92 |
+
uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
|
93 |
+
version = "1.6.0"
|
94 |
+
|
95 |
+
[[deps.ExceptionUnwrapping]]
|
96 |
+
deps = ["Test"]
|
97 |
+
git-tree-sha1 = "e90caa41f5a86296e014e148ee061bd6c3edec96"
|
98 |
+
uuid = "460bff9d-24e4-43bc-9d9f-a8973cb893f4"
|
99 |
+
version = "0.1.9"
|
100 |
+
|
101 |
+
[[deps.ExprTools]]
|
102 |
+
git-tree-sha1 = "c1d06d129da9f55715c6c212866f5b1bddc5fa00"
|
103 |
+
uuid = "e2ba6199-217a-4e67-a87a-7c52f15ade04"
|
104 |
+
version = "0.1.9"
|
105 |
+
|
106 |
+
[[deps.FileWatching]]
|
107 |
+
uuid = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee"
|
108 |
+
|
109 |
+
[[deps.HTTP]]
|
110 |
+
deps = ["Base64", "CodecZlib", "ConcurrentUtilities", "Dates", "ExceptionUnwrapping", "Logging", "LoggingExtras", "MbedTLS", "NetworkOptions", "OpenSSL", "Random", "SimpleBufferStream", "Sockets", "URIs", "UUIDs"]
|
111 |
+
git-tree-sha1 = "cb56ccdd481c0dd7f975ad2b3b62d9eda088f7e2"
|
112 |
+
uuid = "cd3eb016-35fb-5094-929b-558a96fad6f3"
|
113 |
+
version = "1.9.14"
|
114 |
+
|
115 |
+
[[deps.InlineStrings]]
|
116 |
+
deps = ["Parsers"]
|
117 |
+
git-tree-sha1 = "9cc2baf75c6d09f9da536ddf58eb2f29dedaf461"
|
118 |
+
uuid = "842dd82b-1e85-43dc-bf29-5d0ee9dffc48"
|
119 |
+
version = "1.4.0"
|
120 |
+
|
121 |
+
[[deps.InteractiveUtils]]
|
122 |
+
deps = ["Markdown"]
|
123 |
+
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
|
124 |
+
|
125 |
+
[[deps.JLLWrappers]]
|
126 |
+
deps = ["Preferences"]
|
127 |
+
git-tree-sha1 = "abc9885a7ca2052a736a600f7fa66209f96506e1"
|
128 |
+
uuid = "692b3bcd-3c85-4b1f-b108-f13ce0eb3210"
|
129 |
+
version = "1.4.1"
|
130 |
+
|
131 |
+
[[deps.JSON3]]
|
132 |
+
deps = ["Dates", "Mmap", "Parsers", "PrecompileTools", "StructTypes", "UUIDs"]
|
133 |
+
git-tree-sha1 = "5b62d93f2582b09e469b3099d839c2d2ebf5066d"
|
134 |
+
uuid = "0f8b85d8-7281-11e9-16c2-39a750bddbf1"
|
135 |
+
version = "1.13.1"
|
136 |
+
|
137 |
+
[[deps.Jugsaw]]
|
138 |
+
deps = ["CloudEvents", "DaprClients", "Dates", "Distributed", "HTTP", "JugsawIR", "LibGit2", "MLStyle", "Markdown", "OrderedCollections", "Pkg", "Revise", "StructTypes", "TOML", "URIs", "UUIDs"]
|
139 |
+
path = "../.."
|
140 |
+
uuid = "506f6749-58fa-473a-ada6-eb0172fb6950"
|
141 |
+
version = "0.1.0"
|
142 |
+
|
143 |
+
[[deps.JugsawIR]]
|
144 |
+
deps = ["AbstractTrees", "Base64", "DocStringExtensions", "JSON3", "Lerche", "MLStyle"]
|
145 |
+
path = "../../lib/JugsawIR"
|
146 |
+
uuid = "6340f1c1-b722-4800-8081-8412e0693b45"
|
147 |
+
version = "1.0.0-DEV"
|
148 |
+
|
149 |
+
[[deps.JuliaInterpreter]]
|
150 |
+
deps = ["CodeTracking", "InteractiveUtils", "Random", "UUIDs"]
|
151 |
+
git-tree-sha1 = "6a125e6a4cb391e0b9adbd1afa9e771c2179f8ef"
|
152 |
+
uuid = "aa1ae85d-cabe-5617-a682-6adf51b2e16a"
|
153 |
+
version = "0.9.23"
|
154 |
+
|
155 |
+
[[deps.LazyArtifacts]]
|
156 |
+
deps = ["Artifacts", "Pkg"]
|
157 |
+
uuid = "4af54fe1-eca0-43a8-85a7-787d91b784e3"
|
158 |
+
|
159 |
+
[[deps.Lerche]]
|
160 |
+
deps = ["DataStructures", "Logging"]
|
161 |
+
git-tree-sha1 = "64ce9e3818a4dd5741d6c5b6c838ed87b7391b9b"
|
162 |
+
uuid = "d42ef402-04e6-4356-9f73-091573ea58dc"
|
163 |
+
version = "0.5.4"
|
164 |
+
|
165 |
+
[[deps.LibCURL]]
|
166 |
+
deps = ["LibCURL_jll", "MozillaCACerts_jll"]
|
167 |
+
uuid = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21"
|
168 |
+
version = "0.6.3"
|
169 |
+
|
170 |
+
[[deps.LibCURL_jll]]
|
171 |
+
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll", "Zlib_jll", "nghttp2_jll"]
|
172 |
+
uuid = "deac9b47-8bc7-5906-a0fe-35ac56dc84c0"
|
173 |
+
version = "7.84.0+0"
|
174 |
+
|
175 |
+
[[deps.LibGit2]]
|
176 |
+
deps = ["Base64", "NetworkOptions", "Printf", "SHA"]
|
177 |
+
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
|
178 |
+
|
179 |
+
[[deps.LibSSH2_jll]]
|
180 |
+
deps = ["Artifacts", "Libdl", "MbedTLS_jll"]
|
181 |
+
uuid = "29816b5a-b9ab-546f-933c-edad1886dfa8"
|
182 |
+
version = "1.10.2+0"
|
183 |
+
|
184 |
+
[[deps.Libdl]]
|
185 |
+
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
|
186 |
+
|
187 |
+
[[deps.Logging]]
|
188 |
+
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"
|
189 |
+
|
190 |
+
[[deps.LoggingExtras]]
|
191 |
+
deps = ["Dates", "Logging"]
|
192 |
+
git-tree-sha1 = "cedb76b37bc5a6c702ade66be44f831fa23c681e"
|
193 |
+
uuid = "e6f89c97-d47a-5376-807f-9c37f3926c36"
|
194 |
+
version = "1.0.0"
|
195 |
+
|
196 |
+
[[deps.LoweredCodeUtils]]
|
197 |
+
deps = ["JuliaInterpreter"]
|
198 |
+
git-tree-sha1 = "60168780555f3e663c536500aa790b6368adc02a"
|
199 |
+
uuid = "6f1432cf-f94c-5a45-995e-cdbf5db27b0b"
|
200 |
+
version = "2.3.0"
|
201 |
+
|
202 |
+
[[deps.MLStyle]]
|
203 |
+
git-tree-sha1 = "bc38dff0548128765760c79eb7388a4b37fae2c8"
|
204 |
+
uuid = "d8e11817-5142-5d16-987a-aa16d5891078"
|
205 |
+
version = "0.4.17"
|
206 |
+
|
207 |
+
[[deps.Markdown]]
|
208 |
+
deps = ["Base64"]
|
209 |
+
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
|
210 |
+
|
211 |
+
[[deps.MbedTLS]]
|
212 |
+
deps = ["Dates", "MbedTLS_jll", "MozillaCACerts_jll", "Random", "Sockets"]
|
213 |
+
git-tree-sha1 = "03a9b9718f5682ecb107ac9f7308991db4ce395b"
|
214 |
+
uuid = "739be429-bea8-5141-9913-cc70e7f3736d"
|
215 |
+
version = "1.1.7"
|
216 |
+
|
217 |
+
[[deps.MbedTLS_jll]]
|
218 |
+
deps = ["Artifacts", "Libdl"]
|
219 |
+
uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1"
|
220 |
+
version = "2.28.2+0"
|
221 |
+
|
222 |
+
[[deps.Mmap]]
|
223 |
+
uuid = "a63ad114-7e13-5084-954f-fe012c677804"
|
224 |
+
|
225 |
+
[[deps.Mocking]]
|
226 |
+
deps = ["Compat", "ExprTools"]
|
227 |
+
git-tree-sha1 = "4cc0c5a83933648b615c36c2b956d94fda70641e"
|
228 |
+
uuid = "78c3b35d-d492-501b-9361-3d52fe80e533"
|
229 |
+
version = "0.7.7"
|
230 |
+
|
231 |
+
[[deps.MozillaCACerts_jll]]
|
232 |
+
uuid = "14a3606d-f60d-562e-9121-12d972cd8159"
|
233 |
+
version = "2022.10.11"
|
234 |
+
|
235 |
+
[[deps.NetworkOptions]]
|
236 |
+
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908"
|
237 |
+
version = "1.2.0"
|
238 |
+
|
239 |
+
[[deps.OpenSSL]]
|
240 |
+
deps = ["BitFlags", "Dates", "MozillaCACerts_jll", "OpenSSL_jll", "Sockets"]
|
241 |
+
git-tree-sha1 = "51901a49222b09e3743c65b8847687ae5fc78eb2"
|
242 |
+
uuid = "4d8831e6-92b7-49fb-bdf8-b643e874388c"
|
243 |
+
version = "1.4.1"
|
244 |
+
|
245 |
+
[[deps.OpenSSL_jll]]
|
246 |
+
deps = ["Artifacts", "JLLWrappers", "Libdl"]
|
247 |
+
git-tree-sha1 = "cae3153c7f6cf3f069a853883fd1919a6e5bab5b"
|
248 |
+
uuid = "458c3c95-2e84-50aa-8efc-19380b2a3a95"
|
249 |
+
version = "3.0.9+0"
|
250 |
+
|
251 |
+
[[deps.OrderedCollections]]
|
252 |
+
git-tree-sha1 = "d321bf2de576bf25ec4d3e4360faca399afca282"
|
253 |
+
uuid = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
|
254 |
+
version = "1.6.0"
|
255 |
+
|
256 |
+
[[deps.Parsers]]
|
257 |
+
deps = ["Dates", "PrecompileTools", "UUIDs"]
|
258 |
+
git-tree-sha1 = "4b2e829ee66d4218e0cef22c0a64ee37cf258c29"
|
259 |
+
uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
|
260 |
+
version = "2.7.1"
|
261 |
+
|
262 |
+
[[deps.Pkg]]
|
263 |
+
deps = ["Artifacts", "Dates", "Downloads", "FileWatching", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"]
|
264 |
+
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
|
265 |
+
version = "1.9.2"
|
266 |
+
|
267 |
+
[[deps.PrecompileTools]]
|
268 |
+
deps = ["Preferences"]
|
269 |
+
git-tree-sha1 = "9673d39decc5feece56ef3940e5dafba15ba0f81"
|
270 |
+
uuid = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
|
271 |
+
version = "1.1.2"
|
272 |
+
|
273 |
+
[[deps.Preferences]]
|
274 |
+
deps = ["TOML"]
|
275 |
+
git-tree-sha1 = "7eb1686b4f04b82f96ed7a4ea5890a4f0c7a09f1"
|
276 |
+
uuid = "21216c6a-2e73-6563-6e65-726566657250"
|
277 |
+
version = "1.4.0"
|
278 |
+
|
279 |
+
[[deps.Printf]]
|
280 |
+
deps = ["Unicode"]
|
281 |
+
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"
|
282 |
+
|
283 |
+
[[deps.REPL]]
|
284 |
+
deps = ["InteractiveUtils", "Markdown", "Sockets", "Unicode"]
|
285 |
+
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
|
286 |
+
|
287 |
+
[[deps.Random]]
|
288 |
+
deps = ["SHA", "Serialization"]
|
289 |
+
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
|
290 |
+
|
291 |
+
[[deps.RecipesBase]]
|
292 |
+
deps = ["PrecompileTools"]
|
293 |
+
git-tree-sha1 = "5c3d09cc4f31f5fc6af001c250bf1278733100ff"
|
294 |
+
uuid = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
|
295 |
+
version = "1.3.4"
|
296 |
+
|
297 |
+
[[deps.Requires]]
|
298 |
+
deps = ["UUIDs"]
|
299 |
+
git-tree-sha1 = "838a3a4188e2ded87a4f9f184b4b0d78a1e91cb7"
|
300 |
+
uuid = "ae029012-a4dd-5104-9daa-d747884805df"
|
301 |
+
version = "1.3.0"
|
302 |
+
|
303 |
+
[[deps.Revise]]
|
304 |
+
deps = ["CodeTracking", "Distributed", "FileWatching", "JuliaInterpreter", "LibGit2", "LoweredCodeUtils", "OrderedCollections", "Pkg", "REPL", "Requires", "UUIDs", "Unicode"]
|
305 |
+
git-tree-sha1 = "1e597b93700fa4045d7189afa7c004e0584ea548"
|
306 |
+
uuid = "295af30f-e4ad-537b-8983-00126c2a3abe"
|
307 |
+
version = "3.5.3"
|
308 |
+
|
309 |
+
[[deps.SHA]]
|
310 |
+
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
|
311 |
+
version = "0.7.0"
|
312 |
+
|
313 |
+
[[deps.Scratch]]
|
314 |
+
deps = ["Dates"]
|
315 |
+
git-tree-sha1 = "30449ee12237627992a99d5e30ae63e4d78cd24a"
|
316 |
+
uuid = "6c6a2e73-6563-6170-7368-637461726353"
|
317 |
+
version = "1.2.0"
|
318 |
+
|
319 |
+
[[deps.Serialization]]
|
320 |
+
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
|
321 |
+
|
322 |
+
[[deps.SimpleBufferStream]]
|
323 |
+
git-tree-sha1 = "874e8867b33a00e784c8a7e4b60afe9e037b74e1"
|
324 |
+
uuid = "777ac1f9-54b0-4bf8-805c-2214025038e7"
|
325 |
+
version = "1.1.0"
|
326 |
+
|
327 |
+
[[deps.Sockets]]
|
328 |
+
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"
|
329 |
+
|
330 |
+
[[deps.StructTypes]]
|
331 |
+
deps = ["Dates", "UUIDs"]
|
332 |
+
git-tree-sha1 = "ca4bccb03acf9faaf4137a9abc1881ed1841aa70"
|
333 |
+
uuid = "856f2bd8-1eba-4b0a-8007-ebc267875bd4"
|
334 |
+
version = "1.10.0"
|
335 |
+
|
336 |
+
[[deps.TOML]]
|
337 |
+
deps = ["Dates"]
|
338 |
+
uuid = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
|
339 |
+
version = "1.0.3"
|
340 |
+
|
341 |
+
[[deps.Tar]]
|
342 |
+
deps = ["ArgTools", "SHA"]
|
343 |
+
uuid = "a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e"
|
344 |
+
version = "1.10.0"
|
345 |
+
|
346 |
+
[[deps.Test]]
|
347 |
+
deps = ["InteractiveUtils", "Logging", "Random", "Serialization"]
|
348 |
+
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
|
349 |
+
|
350 |
+
[[deps.TimeZones]]
|
351 |
+
deps = ["Dates", "Downloads", "InlineStrings", "LazyArtifacts", "Mocking", "Printf", "RecipesBase", "Scratch", "Unicode"]
|
352 |
+
git-tree-sha1 = "cdaa0c2a4449724aded839550eca7d7240bb6938"
|
353 |
+
uuid = "f269a46b-ccf7-5d73-abea-4c690281aa53"
|
354 |
+
version = "1.10.0"
|
355 |
+
|
356 |
+
[[deps.TranscodingStreams]]
|
357 |
+
deps = ["Random", "Test"]
|
358 |
+
git-tree-sha1 = "9a6ae7ed916312b41236fcef7e0af564ef934769"
|
359 |
+
uuid = "3bb67fe8-82b1-5028-8e26-92a6c54297fa"
|
360 |
+
version = "0.9.13"
|
361 |
+
|
362 |
+
[[deps.URIs]]
|
363 |
+
git-tree-sha1 = "074f993b0ca030848b897beff716d93aca60f06a"
|
364 |
+
uuid = "5c2747f8-b7ea-4ff2-ba2e-563bfd36b1d4"
|
365 |
+
version = "1.4.2"
|
366 |
+
|
367 |
+
[[deps.UUIDs]]
|
368 |
+
deps = ["Random", "SHA"]
|
369 |
+
uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
|
370 |
+
|
371 |
+
[[deps.Unicode]]
|
372 |
+
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
|
373 |
+
|
374 |
+
[[deps.Zlib_jll]]
|
375 |
+
deps = ["Libdl"]
|
376 |
+
uuid = "83775a58-1f1d-513f-b197-d71354ab007a"
|
377 |
+
version = "1.2.13+0"
|
378 |
+
|
379 |
+
[[deps.nghttp2_jll]]
|
380 |
+
deps = ["Artifacts", "Libdl"]
|
381 |
+
uuid = "8e850ede-7688-5339-a07c-302acd2aaf8d"
|
382 |
+
version = "1.48.0+0"
|
383 |
+
|
384 |
+
[[deps.p7zip_jll]]
|
385 |
+
deps = ["Artifacts", "Libdl"]
|
386 |
+
uuid = "3f19e933-33d8-53b3-aaab-bd5110c3b7a0"
|
387 |
+
version = "17.4.0+0"
|
Project.toml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[deps]
|
2 |
+
Jugsaw = "506f6749-58fa-473a-ada6-eb0172fb6950"
|
3 |
+
|
4 |
+
[jugsaw]
|
5 |
+
name = "helloworld"
|
6 |
+
uuid = "a3b13fb6-afc4-4996-b363-56457522e973"
|
7 |
+
authors = ["Jun Tian <[email protected]>"]
|
8 |
+
version = "0.1.0"
|
app.jl
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
using Jugsaw
|
2 |
+
|
3 |
+
"""
|
4 |
+
greet(x)
|
5 |
+
|
6 |
+
A function returns "Hello, \$x".
|
7 |
+
"""
|
8 |
+
greet(x::String) = "Hello, $x"
|
9 |
+
|
10 |
+
# test input types
|
11 |
+
@enum ENM X Y Z
|
12 |
+
const dict = Dict(3 => 5)
|
13 |
+
|
14 |
+
@register helloworld begin
|
15 |
+
greet("Jinguo") == "Hello, Jinguo"
|
16 |
+
identity((X, 1.0, 1, "string", nothing, [1, 2], dict, ComplexF64)) == (X, 1.0, 1, "string", nothing, [1, 2], dict, ComplexF64)
|
17 |
+
end
|
server.jl
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import Jugsaw, Revise
|
2 |
+
|
3 |
+
Revise.includet("app.jl")
|
4 |
+
@info "Running application: " Jugsaw.APP
|
5 |
+
Jugsaw.Server.serve(Jugsaw.APP; watched_files=["app.jl"])
|