Git Product home page Git Product logo

Comments (2)

stcarrez avatar stcarrez commented on July 17, 2024

Good question! I've never done it.

You can add the following:

with "utilada_curl";

in your GNAT project after the with "config/xxx.gpr";.
It works for Curl because the GNAT project of Ada Util is located in a directory that is visible.

If you want to use utilada_aws, it could be a little bit more difficult. I guess you will need to run
alr with aws before.

With this trick, I was able to build a simple example:

with Util.Http.Clients;
with Util.Http.Clients.Curl;
procedure Tst_Util is
begin
   Util.Http.Clients.Curl.Register;
end Tst_Util;

If you have problems with AWS such as a failure to build utilada_aws, it means the AWS version is not compatible with utilada_aws. I've made several fixes to solve this by supporting more AWS versions.
Then, you may have to try the following commit: efe630c

Well, I've done the following:

alr init tst_util --bin
cd tst_util
alr with utilada --use https://github.com/stcarrez/ada-util --commit efe630c97fad95a035f1d3ba9b35dcbb5c058aa4

Then, edited the GNAT project tst_util.gpr:

with "config/tst_util_config.gpr";
with "utilada_aws";
with "utilada_curl";
project Tst_Util is
...
end Tst_Util;

Then, I've used the following:

with Util.Http.Clients;
with Util.Http.Clients.AWS;
procedure Tst_Util is
begin
   Util.Http.Clients.AWS.Register;
end Tst_Util;

and it worked.

from ada-util.

ethindp avatar ethindp commented on July 17, 2024

Thank you so much! I was thinking I'd have to use alr with --from or something like that. I really like utilada. Combined with simple_components, you've got a huge amount of power and flexibility at your fingertips.

from ada-util.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.