From: Karen Etheridge Date: Sun, 2 Oct 2016 23:44:48 +0000 (-0700) Subject: clarify dynamic prereqs in docs X-Git-Tag: v1.003008~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=50a44e810a3170ccc5458f3d08d57c88ea1b79fe;p=p5sagit%2FJSON-MaybeXS.git clarify dynamic prereqs in docs --- diff --git a/Changes b/Changes index 8dc11db..93d872c 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for JSON-MaybeXS + - added an INSTALLATION section to documentation, to clarify the use of + dynamic prerequisites in Makefile.PL + 1.003007 - 2016-09-11 - no changes since 1.003006_001 diff --git a/lib/JSON/MaybeXS.pm b/lib/JSON/MaybeXS.pm index 14d2d00..457a955 100644 --- a/lib/JSON/MaybeXS.pm +++ b/lib/JSON/MaybeXS.pm @@ -274,6 +274,23 @@ Alternatively, you can use duck typing: use Moose::Util::TypeConstraints 'duck_type'; is 'json' => ( isa => Object , duck_type([qw/ encode decode /])); +=head1 INSTALLATION + +At installation time, F will attempt to determine if you have a +working compiler available, and therefore whether you are able to run XS code. +If so, L will be added to the prerequisite list, unless +L is already installed at a high enough version. L may +also be upgraded to fix any incompatibility issues. + +Because running XS code is not mandatory and L (which is in perl +core) is used as a fallback backend, this module is safe to be used in a suite +of code that is fatpacked or installed into a restricted-resource environment. + +You can also prevent any XS dependencies from being installed by setting +C in F options (or in the C +environment variable), or using the C<--pp> or C<--pureperl> flags with the +L. + =head1 AUTHOR mst - Matt S. Trout (cpan:MSTROUT)