Search code examples
moduledependenciesrakuzef

How can I add an external, third-party dependency to a perl6 project?


Either I've missed it or there's no clear information about that topic.

  1. Where should I look for Perl 6 libraries? CPAN.org? Or only http://modules.perl6.org?

  2. When I've chosen one, how can I add it to my Perl 6 project?

  3. If I find it on GitHub, how can I add it to my Perl 6 project?


Solution

  • Please make sure to read @smonff's answer as well for responses to questions 2 and 3.

    1. Where should I look for perl 6 libraries?

    modules.perl6.org.

    1. When I've chosen one, how can I add it to my perl 6 project?

    Use zef to install it on your local system.

    Read the modules doc page for directions on useing a module in your project.

    1. If I find it [somewhere], how can I add it to my perl 6 project?

    If zef can see it (and zef will usually be able to see a module if its repo is listed at modules.perl6.org) then zef should be able to install it. If not, contact the author or ask about it on #perl6.