Comments (3)
I just pushed this crate https://docs.rs/aur-fetch which may be useful to you. Better error messages is still a todo for me but it should be usable.
One slight problem is that I designed it for batch downloads. As in the helper should resolve all the deps via the RPC ahead of time, then pass all of them to this crate and download them at once. Of course doing it in multiple batches is possible but probably makes it much more annoying to use.
And here's an example binary using this crate: https://asciinema.org/a/MnMRusp1XSRo3ZR5MG7PYqlBh
from rua.
@Morganamilo interesting. I must note that it's a hard problem though: the ways how you can combine diffing, fetching and asking user questions is pretty broad. I'll take a look at your proposal.
from rua.
I built this with that in mind. It's a proper library, It never prints anything on it's own. That's up to whoever uses the crate to decide. It does support diffs both as just strings and 'views'.
The view method is pretty much a clone of how aurutils does it if you're familiar with that.
Also this isn't a proposal (otherwise this would be a PR :P) and more hey look at this. But seems as you do want diffs I'd be interested in feedback and if the crate is insufficient in any way for what you want to do.
from rua.
Related Issues (20)
- Rua will not attempt to build for alternate architectures if a package is marked x86_64 only
- Allow to pass in flags to makepkg command
- Allow more fine grained controls in diff HOT 9
- Further improve file diff when upgrading package
- `rua install` doesn't work under systemd-homed user HOT 4
- Dependencies not resolved correctly for split packages
- Segfaults on search HOT 7
- Sandboxing hardening suggestions (`/mnt`, `/media`, PKGBUILD directory) HOT 2
- Decrease compilation time for updated packages HOT 1
- Patching PKGBUILD/.SRCINFO should immediately impact the dependency tree HOT 8
- RUSTSEC-2021-0139: ansi_term is Unmaintained HOT 1
- [Feature request] Add the ability to use a separate pacman.conf HOT 4
- Workflow idea: frequent builds in non-interactive throw-away VMs. Review and approve process is decoupled and allows for zero build time
- Jailing git commands makes bwrap complain about GNUPG related path parameters HOT 13
- `git` command jailing and symlinked directories don't work together HOT 1
- Add completion command
- Blacklist HOT 2
- Move detached signature w/ checked tarball. HOT 1
- Dependency resolution failure with versioned dependencies, with previous versions already installed
- Internal error: queue element does not have depth
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 rua.