Skip to content

Commit

Permalink
Update example.
Browse files Browse the repository at this point in the history
  • Loading branch information
q-uint committed Dec 1, 2021
1 parent 88871a6 commit 8fe4305
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion example/dfx.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"canisters": {
"uuid": {
"main": "main.mo",
"main": "src/example/main.mo",
"type": "motoko"
}
},
Expand Down
17 changes: 10 additions & 7 deletions example/package-set.dhall
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
let upstream = https://github.com/aviate-labs/package-set/releases/download/v0.1.2/package-set.dhall sha256:770d9d2bd9752457319e8018fdcef2813073e76e0637b1f37a7f761e36e1dbc2
let upstream = https://github.com/dfinity/vessel-package-set/releases/download/mo-0.6.7-20210818/package-set.dhall sha256:c4bd3b9ffaf6b48d21841545306d9f69b57e79ce3b1ac5e1f63b068ca4f89957
let aviate-labs = https://github.com/aviate-labs/package-set/releases/download/v0.1.3/package-set.dhall sha256:ca68dad1e4a68319d44c587f505176963615d533b8ac98bdb534f37d1d6a5b47

let Package = { name : Text, version : Text, repo : Text, dependencies : List Text }
let additions = [
{ name = "array"
, repo = "https://github.com/aviate-labs/array.mo"
, version = "v0.2.0"
, dependencies = [ "base" ]
},
{ name = "io"
, repo = "https://github.com/aviate-labs/io.mo"
, version = "v0.3.0"
Expand All @@ -16,5 +13,11 @@ let additions = [
, version = "v0.2.1"
, dependencies = [ "base" ]
},
{ name = "uuid"
, version = "88871a6e1801c61ba54d42966f08be0604bb2a2d"
, repo = "https://github.com/aviate-labs/uuid.mo"
, dependencies = [ "base", "encoding", "io" ]
},
] : List Package
in upstream # additions

in upstream # aviate-labs # additions
7 changes: 3 additions & 4 deletions example/main.mo → example/src/example/main.mo
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import Debug "mo:base/Debug";
import UUID "mo:uuid/UUID";
import Source "mo:uuid/Source";
import AsyncSource "mo:uuid/async/SourceV4";
import XorShift "mo:rand/XorShift";

import UUID "../src/UUID";
import Source "../src/Source";
import AsyncSource "../src/async/SourceV4";

actor {
private let ae = AsyncSource.Source();

Expand Down
2 changes: 1 addition & 1 deletion example/vessel.dhall
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
dependencies = [ "array", "base", "encoding", "io", "rand" ],
dependencies = [ "base", "rand", "uuid" ],
compiler = Some "0.6.11"
}
5 changes: 0 additions & 5 deletions package-set.dhall
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
let upstream = https://github.com/aviate-labs/package-set/releases/download/v0.1.2/package-set.dhall sha256:770d9d2bd9752457319e8018fdcef2813073e76e0637b1f37a7f761e36e1dbc2
let Package = { name : Text, version : Text, repo : Text, dependencies : List Text }
let additions = [
{ name = "array"
, repo = "https://github.com/aviate-labs/array.mo"
, version = "v0.2.0"
, dependencies = [ "base" ]
},
{ name = "io"
, repo = "https://github.com/aviate-labs/io.mo"
, version = "v0.3.0"
Expand Down

0 comments on commit 8fe4305

Please sign in to comment.