agg icon indicating copy to clipboard operation
agg copied to clipboard

building not in the source tree throws 3 warnings

Open tessus opened this issue 2 months ago • 0 comments

Describe the bug

Not really a bug. There are 3 warnings during compilation. However, this only happens when doing this: cargo +stable install agg --git https://github.com/asciinema/agg --tag v1.7.0 If I clone the repo and run cargo +stable build --release or clippy, there are no warnings. Not sure what's going on.

To Reproduce Steps to reproduce the behavior:

  1. cargo +stable install agg --git https://github.com/asciinema/agg --tag v1.7.0
  2. See warnings:
   Compiling agg v1.7.0 (/Users/tessus/.cargo/git/checkouts/agg-7f25bc5356a562d5/489de4d)
warning: use of deprecated method `rgb::legacy::internal::rgb::<impl rgb::Rgb<T>>::alpha`: use .with_alpha(a) instead; this will become a getter in the future
   --> src/renderer/fontdue.rs:172:40
    |
172 |             vec![self.theme.background.alpha(255); self.pixel_width * self.pixel_height];
    |                                        ^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

warning: use of deprecated method `rgb::legacy::internal::rgb::<impl rgb::Rgb<T>>::alpha`: use .with_alpha(a) instead; this will become a getter in the future
   --> src/renderer/fontdue.rs:194:63
    |
194 | ...                   buf[y * self.pixel_width + x] = c.alpha(255);
    |                                                         ^^^^^

warning: use of deprecated method `rgb::legacy::internal::rgb::<impl rgb::Rgb<T>>::alpha`: use .with_alpha(a) instead; this will become a getter in the future
   --> src/renderer/fontdue.rs:205:18
    |
205 |                 .alpha(255);
    |                  ^^^^^

warning: `agg` (lib) generated 3 warnings

Expected behavior A clear and concise description of what you expected to happen.

Versions:

  • OS: macOS 15.7
  • agg: 1.7

tessus avatar Oct 24 '25 23:10 tessus