Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#14] Prepare for clojurescript support #18

Merged
merged 2 commits into from
Dec 29, 2019

Conversation

ghaskins
Copy link
Member

This PR lays the groundwork for supporting ClojureScript. It is a breaking change, and will require an update to protoc-gen-clojure plugin, as well.

Partially addresses #14

Signed-off-by: Greg Haskins [email protected]

Clojurescript doesn't have a method to compute the size of protobuf messages, and
we can get away without having one by using auto-expanding ByteArrayOutputStream
types.  We therefore remove support for all the size-XX serdes and (pb/length)
functions.  This is part of the breaking changes to support both Clojure
and Clojurescript

Partially addresses protojure#14

Signed-off-by: Greg Haskins <[email protected]>
We need to split out common code from clojure/jvm specific code so that
we may pave the way for clojurescript support in a future patch.

Partially addresses protojure#14

Signed-off-by: Greg Haskins <[email protected]>
Copy link
Member

@Rkiouak Rkiouak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ghaskins ghaskins merged commit 4b9cd1c into protojure:master Dec 29, 2019
@ghaskins ghaskins deleted the partial-14 branch December 29, 2019 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants