Skip to content

Commit e5786bb

Browse files
Add platform section
1 parent f45e8c1 commit e5786bb

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

src/main.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ struct ReleaseNotes {
2626

2727
language_relnotes: String,
2828
compiler_relnotes: String,
29+
platform_relnotes: String,
2930
libraries_relnotes: String,
3031
stabilized_apis_relnotes: String,
3132
const_stabilized_apis_relnotes: String,
@@ -77,6 +78,7 @@ fn main() {
7778
let Sections {
7879
language_relnotes,
7980
compiler_relnotes,
81+
platform_relnotes,
8082
libraries_relnotes,
8183
stabilized_apis_relnotes,
8284
const_stabilized_apis_relnotes,
@@ -130,13 +132,11 @@ fn main() {
130132
}
131133

132134
eprintln!(
133-
"Did not use {:?} from {} <{}> (intended to provide relnotes for: {:?})",
135+
"Did not use {:?} from {} <{}> (parsed as providing for #{}, check if that is milestoned correctly)",
134136
section,
135137
issue.raw["title"].as_str().unwrap(),
136138
issue.raw["url"].as_str().unwrap(),
137-
issues
138-
.iter()
139-
.find(|i| i["number"].as_u64().unwrap() == issue.for_number)
139+
issue.for_number,
140140
);
141141
}
142142
}
@@ -147,6 +147,7 @@ fn main() {
147147

148148
language_relnotes,
149149
compiler_relnotes,
150+
platform_relnotes,
150151
libraries_relnotes,
151152
rustdoc_relnotes,
152153
stabilized_apis_relnotes,
@@ -421,6 +422,7 @@ fn has_tags<'a>(o: &'a json::Value, tags: &[&str]) -> bool {
421422
struct Sections {
422423
language_relnotes: String,
423424
compiler_relnotes: String,
425+
platform_relnotes: String,
424426
libraries_relnotes: String,
425427
stabilized_apis_relnotes: String,
426428
const_stabilized_apis_relnotes: String,
@@ -443,13 +445,15 @@ fn to_sections<'a>(
443445
by_section.insert("Rustdoc", String::new());
444446
by_section.insert("Compatibility Notes", String::new());
445447
by_section.insert("Internal Changes", String::new());
448+
by_section.insert("Platform Support", String::new());
446449
by_section.insert("Other", String::new());
447450

448451
map_to_line_items(iter, &mut tracking, &mut by_section);
449452

450453
Sections {
451454
language_relnotes: by_section.remove("Language").unwrap(),
452455
compiler_relnotes: by_section.remove("Compiler").unwrap(),
456+
platform_relnotes: by_section.remove("Platform Support").unwrap(),
453457
libraries_relnotes: by_section.remove("Libraries").unwrap(),
454458
stabilized_apis_relnotes: by_section.remove("Stabilized APIs").unwrap(),
455459
const_stabilized_apis_relnotes: by_section.remove("Const Stabilized APIs").unwrap(),

templates/relnotes.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ Compiler
1313
--------
1414
{{compiler_relnotes}}
1515

16+
<a id="{{version}}-Platform-Support"></a>
17+
18+
Platform Support
19+
----------------
20+
{{platform_relnotes}}
21+
22+
Refer to Rust's [platform support page][platform-support-doc]
23+
for more information on Rust's tiered platform support.
24+
1625
<a id="{{version}}-Libraries"></a>
1726

1827
Libraries
@@ -63,4 +72,4 @@ tools.
6372
Other
6473
-----
6574

66-
{{other_relnotes}}
75+
{{other_relnotes}}

0 commit comments

Comments
 (0)