From 1a73007b3aaa17940173eaff1eb4f6703fd9ec0c Mon Sep 17 00:00:00 2001 From: Adelyn Breelove Date: Wed, 19 Dec 2018 13:44:04 -0700 Subject: Re-arrange autogen serialization files and incorporate into dune file --- lib/dune | 148 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 lib/dune (limited to 'lib/dune') diff --git a/lib/dune b/lib/dune new file mode 100644 index 0000000..4ce6b27 --- /dev/null +++ b/lib/dune @@ -0,0 +1,148 @@ +(rule + (targets activity_t.ml activity_t.mli) + (deps activity.atd) + (action (run atdgen -t %{deps}))) +(rule + (targets activity_j.ml activity_j.mli) + (deps activity.atd) + (action (run atdgen -j %{deps}))) +(rule + (targets attachment_t.ml attachment_t.mli) + (deps attachment.atd) + (action (run atdgen -t %{deps}))) +(rule + (targets attachment_j.ml attachment_j.mli) + (deps attachment.atd) + (action (run atdgen -j %{deps}))) +(rule + (targets ban_t.ml ban_t.mli) + (deps ban.atd) + (action (run atdgen -t %{deps}))) +(rule + (targets ban_j.ml ban_j.mli) + (deps ban.atd) + (action (run atdgen -j %{deps}))) +(rule + (targets channel_t.ml channel_t.mli) + (deps channel.atd) + (action (run atdgen -t %{deps}))) +(rule + (targets channel_j.ml channel_j.mli) + (deps channel.atd) + (action (run atdgen -j %{deps}))) +(rule + (targets embed_t.ml embed_t.mli) + (deps embed.atd) + (action (run atdgen -t %{deps}))) +(rule + (targets embed_j.ml embed_j.mli) + (deps embed.atd) + (action (run atdgen -j %{deps}))) +(rule + (targets emoji_t.ml emoji_t.mli) + (deps emoji.atd) + (action (run atdgen -t %{deps}))) +(rule + (targets emoji_j.ml emoji_j.mli) + (deps emoji.atd) + (action (run atdgen -j %{deps}))) +(rule + (targets guild_t.ml guild_t.mli) + (deps guild.atd) + (action (run atdgen -t %{deps}))) +(rule + (targets guild_j.ml guild_j.mli) + (deps guild.atd) + (action (run atdgen -j %{deps}))) +(rule + (targets member_t.ml member_t.mli) + (deps member.atd) + (action (run atdgen -t %{deps}))) +(rule + (targets member_j.ml member_j.mli) + (deps member.atd) + (action (run atdgen -j %{deps}))) +(rule + (targets message_t.ml message_t.mli) + (deps message.atd) + (action (run atdgen -t %{deps}))) +(rule + (targets message_j.ml message_j.mli) + (deps message.atd) + (action (run atdgen -j %{deps}))) +(rule + (targets presence_t.ml presence_t.mli) + (deps presence.atd) + (action (run atdgen -t %{deps}))) +(rule + (targets presence_j.ml presence_j.mli) + (deps presence.atd) + (action (run atdgen -j %{deps}))) +(rule + (targets reaction_t.ml reaction_t.mli) + (deps reaction.atd) + (action (run atdgen -t %{deps}))) +(rule + (targets reaction_j.ml reaction_j.mli) + (deps reaction.atd) + (action (run atdgen -j %{deps}))) +(rule + (targets role_t.ml role_t.mli) + (deps role.atd) + (action (run atdgen -t %{deps}))) +(rule + (targets role_j.ml role_j.mli) + (deps role.atd) + (action (run atdgen -j %{deps}))) +(rule + (targets snowflake_t.ml snowflake_t.mli) + (deps snowflake.atd) + (action (run atdgen -t %{deps}))) +(rule + (targets snowflake_j.ml snowflake_j.mli) + (deps snowflake.atd) + (action (run atdgen -j %{deps}))) +(rule + (targets user_t.ml user_t.mli) + (deps user.atd) + (action (run atdgen -t %{deps}))) +(rule + (targets user_j.ml user_j.mli) + (deps user.atd) + (action (run atdgen -j %{deps}))) + +(library + (name disml) + (public_name disml) + (synopsis "An OCaml library for interfacing with the Discord API") + (modules + activity activity_t activity_j + attachment attachment_t attachment_j + ban ban_t ban_j + channel channel_t channel_j + embed embed_t embed_j + emoji emoji_t emoji_j + guild guild_t guild_j + member member_t member_j + message message_t message_j + presence presence_t presence_j + reaction reaction_t reaction_j + role role_t role_j + snowflake snowflake_t snowflake_j + user user_t user_j + client + dispatch + endpoints + event + http + models + opcode + rl + s + sharder + ) + (libraries core async_ssl cohttp-async yojson websocket-async zlib atdgen) + (preprocess (pps ppx_jane)) +) + +(include_subdirs unqualified) -- cgit v1.2.3 From 66e1462b8dd3f2b89cf066f314eeb9070b05be69 Mon Sep 17 00:00:00 2001 From: Adelyn Breelove Date: Wed, 19 Dec 2018 15:50:16 -0700 Subject: Fix member abstraction and helper methods --- lib/dune | 39 +++++++++++++++------------------------ 1 file changed, 15 insertions(+), 24 deletions(-) (limited to 'lib/dune') diff --git a/lib/dune b/lib/dune index 4ce6b27..667d021 100644 --- a/lib/dune +++ b/lib/dune @@ -116,30 +116,21 @@ (public_name disml) (synopsis "An OCaml library for interfacing with the Discord API") (modules - activity activity_t activity_j - attachment attachment_t attachment_j - ban ban_t ban_j - channel channel_t channel_j - embed embed_t embed_j - emoji emoji_t emoji_j - guild guild_t guild_j - member member_t member_j - message message_t message_j - presence presence_t presence_j - reaction reaction_t reaction_j - role role_t role_j - snowflake snowflake_t snowflake_j - user user_t user_j - client - dispatch - endpoints - event - http - models - opcode - rl - s - sharder + activity_t activity_j + attachment_t attachment_j + ban_t ban_j + channel_t channel_j + embed_t embed_j + emoji_t emoji_j + guild_t guild_j + member_t member_j + message_t message_j + presence_t presence_j + reaction_t reaction_j + role_t role_j + snowflake_t snowflake_j + user_t user_j + activity attachment ban channel embed emoji guild member message presence reaction role snowflake user client dispatch endpoints event http models opcode rl s sharder ) (libraries core async_ssl cohttp-async yojson websocket-async zlib atdgen) (preprocess (pps ppx_jane)) -- cgit v1.2.3