You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

cc

Package Overview
Dependencies
Maintainers
0
Versions
203
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cc - cargo Package Compare versions

Comparing version
1.2.13
to
1.2.14
+1
-1
.cargo_vcs_info.json
{
"git": {
"sha1": "15fe11277b10009eaed8f85bb43b2ad7d6fe204a"
"sha1": "328d0ff09a3c4cb3e1f32771ea9ea8ea23de1385"
},
"path_in_vcs": ""
}

@@ -13,3 +13,3 @@ # This file is automatically @generated by Cargo.

name = "cc"
version = "1.2.13"
version = "1.2.14"
dependencies = [

@@ -16,0 +16,0 @@ "jobserver",

@@ -16,3 +16,3 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO

name = "cc"
version = "1.2.13"
version = "1.2.14"
authors = ["Alex Crichton <alex@alexcrichton.com>"]

@@ -19,0 +19,0 @@ build = false

@@ -9,2 +9,10 @@ # Changelog

## [1.2.14](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.13...cc-v1.2.14) - 2025-02-14
### Other
- Regenerate target info ([#1398](https://github.com/rust-lang/cc-rs/pull/1398))
- Add support for setting `-gdwarf-{version}` based on RUSTFLAGS ([#1395](https://github.com/rust-lang/cc-rs/pull/1395))
- Add support for alternative network stack io-sock on QNX 7.1 aarch64 and x86_64 ([#1312](https://github.com/rust-lang/cc-rs/pull/1312))
## [1.2.13](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.12...cc-v1.2.13) - 2025-02-08

@@ -11,0 +19,0 @@

@@ -21,2 +21,3 @@ use crate::target::TargetInfo;

soft_float: Option<bool>,
dwarf_version: Option<u32>,
}

@@ -90,2 +91,6 @@

fn arg_to_u32(arg: impl AsRef<str>) -> Option<u32> {
arg.as_ref().parse().ok()
}
let (flag, value) = if let Some((flag, value)) = flag.split_once('=') {

@@ -153,2 +158,10 @@ (flag, Some(value))

}
// https://doc.rust-lang.org/beta/unstable-book/compiler-flags/dwarf-version.html
// FIXME: Drop the -Z variant and update the doc link once the option is stablized
"-Zdwarf-version" | "-Cdwarf-version" => {
self.dwarf_version = Some(value.and_then(arg_to_u32).ok_or(Error::new(
ErrorKind::InvalidFlag,
"-Zdwarf-version must have a value",
))?);
}
_ => {}

@@ -256,2 +269,7 @@ }

}
// https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-gdwarf-2
// https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html#index-gdwarf
if let Some(value) = self.dwarf_version {
push_if_supported(format!("-gdwarf-{value}").into());
}
}

@@ -397,2 +415,3 @@

"-Zbranch-protection=bti,pac-ret,leaf",
"-Zdwarf-version=5",
// Set flags we don't recognise but rustc supports next

@@ -504,2 +523,3 @@ // rustc flags

branch_protection: Some("bti,pac-ret,leaf"),
dwarf_version: Some(5),
},

@@ -506,0 +526,0 @@ );

@@ -45,3 +45,4 @@ use super::TargetInfo;

let env = match env {
"newlib" | "nto70" | "nto71" | "ohos" | "p1" | "p2" | "relibc" | "sgx" | "uclibc" => "",
"newlib" | "nto70" | "nto71" | "nto71_iosock" | "ohos" | "p1" | "p2" | "relibc" | "sgx"
| "uclibc" => "",
env => env,

@@ -48,0 +49,0 @@ };

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display