xyncro / chiron

JSON for F#
https://xyncro.tech/chiron
MIT License
175 stars 41 forks source link

Make Chiron more Paket file-include friendly #69

Open neoeinstein opened 8 years ago

neoeinstein commented 8 years ago

Add a compiler directive CHIRON_PUBLIC to distinguish between the cases where Chiron is being published as a NuGet package versus as a single-file include. This same mechanism can also allow Chiron to be included once but shared within an application.

neoeinstein commented 8 years ago

This issue has a bit of a hiccup in that we are necessarily exporting the Json type. Even if we didn't export any other types, all consumers of this library generally need to agree on one Json type. If Chiron is included from multiple file sources, these Json types won't agree (or cause compilation errors), and so this may not be something we can easily resolve in a truly Paket file-include friendly way.