Git Product home page Git Product logo

cargo-fund's People

Contributors

acfoltzer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cargo-fund's Issues

Mark links as supported or ignored

It would be nice to track which sponsor links you're already supporting, or any packages/repos you'd like to exclude from the output (like yourself under a different github org).

The simplest approach is probably to keep a config file around with a list of URIs, but we could also query the Github API, at least to get Github Sponsors information automatically.

Rename token env var to CARGO_FUND_GITHUB_API_TOKEN

The issue

Other applications make use of the GITHUB_API_TOKEN variable. This makes it hard to have application specific with minimum required privileges for each app.

Proposed solution

Name space the environment variable that cargo fund used by prefixing it with CARGO_FUND_ or something similar. So the environment variable will be called: CARGO_FUND_GITHUB_API_TOKEN.

Prior Art

See brew's environment variables. Specifically HOMEBREW_GITHUB_API_TOKEN

Error: invalid format

When I ran:

jeff@MacBook-Pro wasm % cargo fund
Error: Github API token must be provided through the CARGO_FUND_GITHUB_API_TOKEN environment variable or the --github-api-token flag.
jeff@MacBook-Pro wasm % cargo fund --github-api-token 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
Error: Insufficient Github API token scopes. Modify your token to include the `public_repo` and `user` scopes at https://github.com/settings/tokens.
jeff@MacBook-Pro wasm % cargo fund --github-api-token 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
Error: invalid format
jeff@MacBook-Pro wasm % cargo fund --github-api-token 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
Error: invalid format
jeff@MacBook-Pro wasm % 

I've deleted both tokens so it's safe to post them here.

Increase timeout

Awesome small tool and initiative!

When I ran it on our fairly large project with 510 dependencies the default 5 second timeout kept being triggered though, seems to take around 12 seconds for our query.

There are projects with even more dependencies so how about increasing the default timeout to 30 sec?

OAuth flow to generate Github API tokens

This would be friendlier to users than asking them to create a personal access token. Unfortunately requires a web service and some careful thinking about security.

Tag release for 0.2.0

Hello, this is a great idea, thanks for building it. I have created an AUR package for cargo-fund, which is built from tagged releases. I see that a 0.2.0 version has been released to crates.io but not tagged in git. Would it be possible to tag this version (and future versions) in git as well?

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.