Skip to content

Commit c9a05b4

Browse files
authored
Merge pull request #4313 from tgross35/main-sorrel
[main] Apply PRs to main
2 parents be79077 + 46abfae commit c9a05b4

File tree

5 files changed

+49
-5
lines changed

5 files changed

+49
-5
lines changed

.release-plz.toml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,48 @@
11
[workspace]
22
git_release_name = "{{ version }}"
33
git_tag_name = "{{ version }}"
4+
5+
[changelog]
6+
body = """
7+
## [{{ version | trim_start_matches(pat="v") }}]\
8+
{%- if release_link -%}\
9+
({{ release_link }})\
10+
{% endif %} \
11+
- {{ timestamp | date(format="%Y-%m-%d") }}
12+
{% for group, commits in commits | group_by(attribute="group") %}
13+
### {{ group | upper_first }}
14+
{% for commit in commits %}
15+
- {% if commit.scope -%}{{ commit.scope | upper_first }}: {% endif %}
16+
{%- if commit.breaking %}[**breaking**] {% endif %}
17+
{{- commit.message }}
18+
{%- if commit.links %} ([{{ commit.links.1.text }}]({{ commit.links.1.href }})){% endif -%}
19+
{% endfor %}
20+
{% endfor %}
21+
{%- if github -%}
22+
{% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
23+
## New Contributors ❤️
24+
{% endif %}\
25+
{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
26+
* @{{ contributor.username }} made their first contribution
27+
{%- if contributor.pr_number %} in \
28+
[#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \
29+
{%- endif %}
30+
{%- endfor -%}
31+
{%- endif %}
32+
"""
33+
34+
commit_parsers = [
35+
{ message = '(?i)^(\w+: )?feat', group = "added" },
36+
{ message = '(?i)^(\w+: )?add', group = "added" },
37+
{ message = '(?i)^(\w+: )?change', group = "changed" },
38+
{ message = '(?i)^(\w+: )?deprecate', group = "deprecated" },
39+
{ message = '(?i)^(\w+: )?remove', group = "removed" },
40+
{ message = '(?i)^(\w+: )?fix', group = "fixed" },
41+
{ message = '(?i)^(\w+: )?fix', group = "fixed" },
42+
{ message = '^.*', group = "other" },
43+
]
44+
45+
link_parsers = [
46+
# Extract backport patterns
47+
{ pattern = '\(backport <.*/(\d+)>\)', text = "#$1", href = "https://github.com/rust-lang/libc/pull/$1"}
48+
]

src/hermit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ s! {
100100
pub st_uid: u32,
101101
pub st_gid: u32,
102102
pub st_rdev: u64,
103-
pub st_size: u64,
103+
pub st_size: i64,
104104
pub st_blksize: i64,
105105
pub st_blocks: i64,
106106
pub st_atim: timespec,

src/unix/linux_like/emscripten/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,8 +1512,6 @@ extern "C" {
15121512
pub fn pwritev(fd: c_int, iov: *const crate::iovec, iovcnt: c_int, offset: off_t) -> ssize_t;
15131513
pub fn preadv(fd: c_int, iov: *const crate::iovec, iovcnt: c_int, offset: off_t) -> ssize_t;
15141514
pub fn dup3(oldfd: c_int, newfd: c_int, flags: c_int) -> c_int;
1515-
pub fn mkostemp(template: *mut c_char, flags: c_int) -> c_int;
1516-
pub fn mkostemps(template: *mut c_char, suffixlen: c_int, flags: c_int) -> c_int;
15171515
pub fn nl_langinfo_l(item: crate::nl_item, locale: crate::locale_t) -> *mut c_char;
15181516
pub fn accept4(
15191517
fd: c_int,

src/unix/linux_like/linux/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6372,8 +6372,6 @@ extern "C" {
63726372
sigmask: *const crate::sigset_t,
63736373
) -> c_int;
63746374
pub fn dup3(oldfd: c_int, newfd: c_int, flags: c_int) -> c_int;
6375-
pub fn mkostemp(template: *mut c_char, flags: c_int) -> c_int;
6376-
pub fn mkostemps(template: *mut c_char, suffixlen: c_int, flags: c_int) -> c_int;
63776375
pub fn sigtimedwait(
63786376
set: *const sigset_t,
63796377
info: *mut siginfo_t,

src/unix/linux_like/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,6 +1886,9 @@ extern "C" {
18861886
) -> size_t;
18871887
pub fn strptime(s: *const c_char, format: *const c_char, tm: *mut crate::tm) -> *mut c_char;
18881888

1889+
pub fn mkostemp(template: *mut c_char, flags: c_int) -> c_int;
1890+
pub fn mkostemps(template: *mut c_char, suffixlen: c_int, flags: c_int) -> c_int;
1891+
18891892
pub fn getdomainname(name: *mut c_char, len: size_t) -> c_int;
18901893
pub fn setdomainname(name: *const c_char, len: size_t) -> c_int;
18911894
}

0 commit comments

Comments
 (0)