Comments (2)
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.
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)
- util-http-clients-curl.ads missing after installation HOT 5
- Compilation issues on NetBSD 9.2 HOT 1
- Update utilada and related crates on alire to latest version HOT 4
- Question about JSON serialization/deserialization HOT 14
- Can't use Ada-Util under GCC 10 HOT 2
- Typo in procedure name HOT 2
- aws-client-ext__2.adb fails to compile HOT 14
- No HTTP manager is defined (even though one should be) HOT 5
- link of util_harness.adb failed
- Custom log appender HOT 5
- utilada_aws: raised PROGRAM_ERROR : SSL not supported. HOT 2
- Logger: add a way to filter logs HOT 1
- utilada_curl crate uses wrong curl dependency
- Add HOTP algorithm
- Support to build with -gnatW8
- Allow to read stdout and stderr as separate streams when spawning a process
- Input stream reader to read parts from another stream
- Support to ignore line breaks when decoding Base64 streams
- Improvement of test framework to launch and verify external program execution and output
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ada-util.