22 Commits

Author SHA1 Message Date
Manish Goregaokar
f110d78793 Bump color-eyre to 0.6.5, color-spantrace to 0.3.0 2025-05-30 09:38:16 -07:00
Georg Semmler
9f35b8c83f
Exclude images from published crate (#239)
This commit introduces an explict `include` configuration in the
`Cargo.toml` file of `color-spantrace`. That has the effect that it now
excludes the two example images from the source code uploaded to
crates.io.
The main benifits of this change are:

* It reduces the size of the uploaded tar-ball from 186KB to 12KB, so an
over 90% reduction in size. That will reduce the traffic produced by
this crate at crates.io by over 350GB in a 90 day period based on the
number of downloads listed by crates.io
* It removes a hard to review binary blob from the source code. In
combination with the build script such a blob might enable a future
supply chain attack. By removing the blob it becomes at least harder to
perform a xz-like code injection.

The pictures are only used by the readme. That readme is rendered by
crates.io. To keep the rendering there intact the links to the image
have been replaced by linkes to the image hosted by github. This removes
the need to upload these images to crates.io.
2025-05-27 21:10:13 +00:00
Manish Goregaokar
c4ee249f7c
Bump color-eyre to 0.6.3, color-spantrace to 0.2.2 to publish owo-colors bump (#207)
owo-colors has a potential soundness bug, which I'm attempting to fix in
https://github.com/jam1garner/owo-colors/pull/131. However, a lot of
crates rely on the 3.x series, which may not get patched. Preemptively
updating them, would appreciate a release!!
2025-01-24 15:35:08 -08:00
Jane Losare-Lusby
7706273bcf
emit rustc-check-cfg info and fix doc_lazy_continuation clippy warning (#200)
This should resolve clippy warnings on master
2024-08-29 13:56:05 -07:00
Jubilee Young
6e2ffcc0c2 Bump workspace to owo-colors 4.0
Requires adding a path dependency in color-eyre on color-spantrace
so that the versions agree. Fortunately we can do that now!
2024-04-25 14:26:24 -07:00
Freja Roberts
eb8d059c50 Merge remote-tracking branch 'origin/master' into color-eyre 2024-03-14 18:05:00 +01:00
Jubilee
e570151950
color-spantrace: bump owo-colors to 4.0 (#156) 2024-02-15 21:41:55 +00:00
Freja Roberts
57216d0b14 Merge remote-tracking branch 'origin/master' into color-eyre 2023-12-08 16:56:40 +01:00
Freja Roberts
d825b49a11 fix: conflicting example binaries 2023-12-08 16:53:14 +01:00
Jane Losare-Lusby
949e845777 remove deprecated lints as of 1.74 2023-11-21 14:28:07 -08:00
Jane Losare-Lusby
6d2e6e8df2 Release independent packages
color-spantrace@0.2.1
eyre@0.6.9

Generated by cargo-workspaces
2023-11-21 14:28:07 -08:00
Jane Losare-Lusby
a1c5dad686 manually apply cargo-release substitutions and also prep color-spantrace for publish 2023-11-21 14:28:07 -08:00
nori li
75511afd0e
Remove obsolete private_in_public lint in nightly and beta. (#113)
RFC 2145 is in beta now, deprecating the public_in_private lint.
https://rust-lang.github.io/rfcs/2145-type-privacy.html

public_in_private has been superceded by three new lints. The first two
are warn-by-default and the third is allow-by-default. See the excerpt
below for some details.

This change skips this lint in nightly and beta in favor of the new
warn-by-default lints.

This change revealed a bug in the toolchain config option for
color-spantrace -- it doesn't exist! The lint it was guarding was never
turned on. This adds a minimal build script to check for toolchain to
color-spantrace. Its functionality is tested in the eyre crate, which
seems sufficient to me.

After this change there are only two more build warnings for eyre and
color-spantrace, the future-incompat dependency warning and the more
serious filename collision.

<quote>
    Lint private_interfaces is reported when a type with visibility x is
    used in primary interface of an item with effective visibility y and
    x < y. This lint is warn-by-default.

    Lint private_bounds is reported when a type or trait with visibility
    x is used in secondary interface of an item with effective
    visibility y and x < y. This lint is warn-by-default.

    Lint unnameable_types is reported when effective visibility of a
    type is larger than module in which it can be named, either
    directly, or through reexports, or through trivial type aliases
    (type X = Y;, no generics on both sides). This lint is
    allow-by-default.

    Compatibility lint private_in_public is never reported and removed.
</quote>
2023-11-17 09:29:52 -08:00
nori li
1fc5c56683
Avoid filename collision in the monorepo structure
Warning: output filename collision appears in both stable and nightly builds.

It's slightly more impactful than just a warning. Running cargo +nightly
test, cargo test, cargo +nightly test in windows produces a linker error
where color-spantrace tries to use eyre's usage.exe, see error 2 below.
It's worked around pretty easily with cargo clean, but it's a problem
that might get worse as the monorepo effort expands!

This patch renames `usage.rs` to `CRATENAME-usage.rs`.

Issue #115
2023-11-09 22:31:42 -08:00
nori li
7fefca5981
Add build script to check for nightly (#112)
The rustdoc_missing_doc_code_examples lint has been sending
warnings and causing CI issues due to being an unstable feature.

This change introduces a small build script that detects whether
the current toolchain is nightly and, if so, sets the config option
"nightly_features". This config option then sets the feature gate
for missing_doc_code_examples and turns on 'warn'.

It expands the existing code for parsing minor version
to parse the rest of the rust --version.

This change also introduces a toolchain test that uses
rust_version to double-check that the config option was enabled
IFF the nightly toolchain is being used.
2023-11-07 13:35:25 -08:00
Pavan Kumar Sunkara
7c7079ed6e Add color-eyre to workspace 2023-10-11 21:47:49 +01:00
Tei Roberts
0d7f941eb2 fix: unused imports under miri 2023-10-10 23:51:31 +02:00
Tei Roberts
0ad6355d9f chore: clarify file! behavior 2023-10-10 23:46:57 +02:00
Tei Roberts
e54e98f313 fix: color-spantrace does not work in miri sandbox 2023-10-10 23:43:32 +02:00
Tei Roberts
22b871bc0e fix: color-spantrace test due to misinterpreted relative paths 2023-10-10 23:40:34 +02:00
Pavan Kumar Sunkara
e42d667d15 Add color-spantrace to workspace 2023-10-03 21:18:59 +01:00
Pavan Kumar Sunkara
b40a66d493 Add 'color-spantrace/' from commit '1a52aac2b55a05efc64807f06b91414550805af8'
git-subtree-dir: color-spantrace
git-subtree-mainline: a443fd444ecfe8ac7f0d9a33b3f8e8d125eedbff
git-subtree-split: 1a52aac2b55a05efc64807f06b91414550805af8
2023-10-03 21:11:23 +01:00