diff --git a/example/dfx.json b/example/dfx.json index 3235b49..1b477de 100644 --- a/example/dfx.json +++ b/example/dfx.json @@ -1,7 +1,7 @@ { "canisters": { "uuid": { - "main": "main.mo", + "main": "src/example/main.mo", "type": "motoko" } }, diff --git a/example/package-set.dhall b/example/package-set.dhall index 0e8ab01..c29bafb 100644 --- a/example/package-set.dhall +++ b/example/package-set.dhall @@ -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" @@ -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 diff --git a/example/main.mo b/example/src/example/main.mo similarity index 84% rename from example/main.mo rename to example/src/example/main.mo index fc30254..0774a4c 100644 --- a/example/main.mo +++ b/example/src/example/main.mo @@ -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(); diff --git a/example/vessel.dhall b/example/vessel.dhall index 78a3ed1..f349b7a 100644 --- a/example/vessel.dhall +++ b/example/vessel.dhall @@ -1,4 +1,4 @@ { - dependencies = [ "array", "base", "encoding", "io", "rand" ], + dependencies = [ "base", "rand", "uuid" ], compiler = Some "0.6.11" } diff --git a/package-set.dhall b/package-set.dhall index 8aac25f..52b9f1c 100644 --- a/package-set.dhall +++ b/package-set.dhall @@ -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"