Skip to content

Document a MSRV policy - #2243

Merged
ctz merged 2 commits into
mainfrom
jbp-msrv-policy
Nov 27, 2024
Merged

ctz merged 2 commits into
mainfrom
jbp-msrv-policy

Conversation

@ctz

@ctz ctz commented Nov 26, 2024

Copy link
Copy Markdown
Member

For discussion ref #2239

Rendered

@rustls-benchmarking

rustls-benchmarking Bot commented Nov 26, 2024 •

Copy link
Copy Markdown

Benchmark results

Instruction counts

Significant differences

There are no significant instruction count differences

Other differences

Click to expand
Scenario Baseline Candidate Diff Threshold
handshake_no_resume_aws_lc_rs_1.3_ecdsap384_aes_client 8595095 8612696 17601 (0.20%) 1.06%
handshake_no_resume_aws_lc_rs_1.3_rsa_aes_server 10702096 10715903 13807 (0.13%) 0.98%
handshake_no_resume_aws_lc_rs_1.3_ecdsap384_chacha_client 8587893 8595790 7897 (0.09%) 1.01%
handshake_no_resume_aws_lc_rs_1.2_rsa_aes_server 10443441 10451055 7614 (0.07%) 1.65%
handshake_no_resume_aws_lc_rs_1.3_ecdsap256_chacha_client 3080348 3082538 2190 (0.07%) 0.26%
handshake_no_resume_aws_lc_rs_1.3_rsa_chacha_server 10729692 10723602 -6090 (-0.06%) 0.84%
handshake_no_resume_aws_lc_rs_1.3_ecdsap256_aes_client 3079652 3080153 501 (0.02%) 0.23%
handshake_no_resume_aws_lc_rs_1.3_ecdsap384_chacha_server 2076714 2076817 103 (0.00%) 0.20%
handshake_no_resume_aws_lc_rs_1.3_ecdsap384_aes_server 2073771 2073672 -99 (-0.00%) 0.20%
handshake_no_resume_ring_1.3_ecdsap256_chacha_client 3624502 3624670 168 (0.00%) 0.46%
handshake_no_resume_ring_1.3_ecdsap256_chacha_server 1613352 1613375 23 (0.00%) 1.07%
handshake_session_id_aws_lc_rs_1.3_ecdsap256_chacha_server 28889370 28888986 -384 (-0.00%) 0.20%
handshake_no_resume_aws_lc_rs_1.3_rsa_aes_client 1925741 1925719 -22 (-0.00%) 0.20%
handshake_no_resume_aws_lc_rs_1.2_rsa_aes_client 1717609 1717624 15 (0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.3_rsa_aes_client 28229789 28229572 -217 (-0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.3_ecdsap384_aes_client 27858830 27858618 -212 (-0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.3_ecdsap256_chacha_client 27801580 27801773 193 (0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.3_rsa_aes_client 27865672 27865816 144 (0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.3_ecdsap384_chacha_server 28889165 28889022 -143 (-0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.3_ecdsap256_aes_server 28967477 28967620 143 (0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.3_ecdsap256_chacha_client 28195804 28195941 137 (0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.3_ecdsap384_chacha_client 27799187 27799067 -120 (-0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.3_ecdsap256_chacha_server 30384572 30384447 -125 (-0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.3_ecdsap256_aes_client 28225862 28225777 -85 (-0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.3_ecdsap384_aes_client 28222765 28222814 49 (0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.3_rsa_aes_server 28964741 28964791 50 (0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.3_rsa_chacha_client 28199691 28199737 46 (0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.3_ecdsap384_chacha_server 30384766 30384814 48 (0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.3_ecdsap384_aes_server 30427636 30427684 48 (0.00%) 0.20%
handshake_no_resume_ring_1.3_ecdsap384_chacha_server 7566470 7566460 -10 (-0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.3_ecdsap256_aes_server 30427222 30427190 -32 (-0.00%) 0.20%
handshake_no_resume_ring_1.3_ecdsap384_chacha_client 35182582 35182557 -25 (-0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.3_ecdsap384_chacha_client 28192827 28192808 -19 (-0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.3_rsa_chacha_client 27805942 27805960 18 (0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.3_rsa_chacha_server 30381399 30381382 -17 (-0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.3_ecdsap256_aes_client 27861325 27861336 11 (0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.3_rsa_aes_server 30424153 30424141 -12 (-0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.3_ecdsap384_aes_server 28967637 28967627 -10 (-0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.3_rsa_chacha_server 28886329 28886335 6 (0.00%) 0.20%
transfer_no_resume_ring_1.3_ecdsap256_aes_client 58341611 58341600 -11 (-0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_rsa_aes_server 46477538 46477530 -8 (-0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_rsa_aes_client 58255500 58255491 -9 (-0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_ecdsap384_chacha_server 80641264 80641254 -10 (-0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.2_rsa_aes_client 58191641 58191648 7 (0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_ecdsap384_aes_client 58253411 58253418 7 (0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_ecdsap256_chacha_client 92714544 92714535 -9 (-0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_ecdsap256_chacha_server 80648884 80648877 -7 (-0.00%) 0.20%
transfer_no_resume_ring_1.3_rsa_chacha_server 80554928 80554934 6 (0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.2_rsa_aes_server 46423828 46423831 3 (0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_ecdsap256_aes_server 46464567 46464564 -3 (-0.00%) 0.20%
transfer_no_resume_ring_1.3_ecdsap384_chacha_client 92682835 92682830 -5 (-0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_ecdsap384_chacha_client 92716771 92716775 4 (0.00%) 0.20%
transfer_no_resume_ring_1.2_rsa_aes_server 46389588 46389586 -2 (-0.00%) 0.20%
transfer_no_resume_ring_1.3_ecdsap384_chacha_server 80540450 80540447 -3 (-0.00%) 0.20%
transfer_no_resume_ring_1.2_rsa_aes_client 58235172 58235170 -2 (-0.00%) 0.20%
transfer_no_resume_ring_1.3_rsa_aes_client 58352502 58352504 2 (0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_rsa_chacha_client 92720780 92720778 -2 (-0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_ecdsap384_aes_server 46456943 46456942 -1 (-0.00%) 0.20%
transfer_no_resume_ring_1.3_ecdsap256_aes_server 46467812 46467813 1 (0.00%) 0.20%
transfer_no_resume_ring_1.3_rsa_aes_server 46487102 46487103 1 (0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_rsa_chacha_server 80661849 80661850 1 (0.00%) 0.20%
transfer_no_resume_ring_1.3_ecdsap256_chacha_client 92673768 92673769 1 (0.00%) 0.20%
handshake_no_resume_ring_1.3_ecdsap256_aes_server 1611985 1611985 0 (0.00%) 1.08%
handshake_tickets_aws_lc_rs_1.2_rsa_aes_server 5020364 5020364 0 (0.00%) 0.20%
handshake_no_resume_ring_1.2_rsa_aes_client 2563580 2563580 0 (0.00%) 0.20%
handshake_session_id_ring_1.3_ecdsap256_aes_client 40292528 40292528 0 (0.00%) 0.20%
handshake_tickets_ring_1.2_rsa_aes_client 4497603 4497603 0 (0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.2_rsa_aes_server 3870183 3870183 0 (0.00%) 0.20%
handshake_no_resume_ring_1.3_rsa_aes_client 2655903 2655903 0 (0.00%) 0.20%
handshake_tickets_ring_1.3_rsa_aes_server 42062048 42062048 0 (0.00%) 0.20%
transfer_no_resume_ring_1.3_ecdsap384_aes_server 46470690 46470690 0 (0.00%) 0.20%
handshake_no_resume_ring_1.3_rsa_aes_server 11424773 11424773 0 (0.00%) 0.20%
handshake_tickets_ring_1.3_ecdsap256_aes_server 42064948 42064948 0 (0.00%) 0.20%
handshake_tickets_ring_1.3_ecdsap256_chacha_server 41965918 41965918 0 (0.00%) 0.20%
handshake_session_id_ring_1.2_rsa_aes_server 4230790 4230790 0 (0.00%) 0.20%
handshake_no_resume_aws_lc_rs_1.3_ecdsap256_aes_server 1174303 1174303 0 (0.00%) 0.20%
handshake_session_id_ring_1.3_rsa_chacha_server 41482178 41482178 0 (0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_ecdsap256_aes_client 58251175 58251175 0 (0.00%) 0.20%
handshake_tickets_ring_1.2_rsa_aes_server 4695330 4695330 0 (0.00%) 0.20%
handshake_tickets_ring_1.3_rsa_chacha_client 40519970 40519970 0 (0.00%) 0.20%
handshake_session_id_ring_1.3_ecdsap384_aes_client 40289595 40289595 0 (0.00%) 0.20%
transfer_no_resume_ring_1.3_rsa_chacha_client 92684671 92684671 0 (0.00%) 0.20%
handshake_tickets_ring_1.3_rsa_chacha_server 41963018 41963018 0 (0.00%) 0.20%
handshake_session_id_ring_1.3_ecdsap384_aes_server 41603799 41603799 0 (0.00%) 0.20%
handshake_tickets_ring_1.3_ecdsap384_aes_server 42065138 42065138 0 (0.00%) 0.20%
handshake_session_id_ring_1.3_rsa_chacha_client 40202193 40202193 0 (0.00%) 0.20%
handshake_no_resume_ring_1.3_rsa_chacha_client 2661768 2661768 0 (0.00%) 0.20%
transfer_no_resume_ring_1.3_ecdsap384_aes_client 58348757 58348757 0 (0.00%) 0.20%
handshake_no_resume_aws_lc_rs_1.3_ecdsap256_chacha_server 1176685 1176685 0 (0.00%) 0.20%
handshake_no_resume_ring_1.3_ecdsap384_aes_client 35180652 35180652 0 (0.00%) 0.20%
handshake_session_id_ring_1.3_rsa_aes_client 40296573 40296573 0 (0.00%) 0.20%
transfer_no_resume_ring_1.3_ecdsap256_chacha_server 80535649 80535649 0 (0.00%) 0.20%
handshake_session_id_ring_1.3_ecdsap256_chacha_server 41484771 41484771 0 (0.00%) 0.20%
handshake_no_resume_ring_1.2_rsa_aes_server 11292386 11292386 0 (0.00%) 0.20%
handshake_session_id_ring_1.3_ecdsap384_chacha_server 41484849 41484849 0 (0.00%) 0.20%
handshake_tickets_ring_1.3_ecdsap384_chacha_client 40512717 40512717 0 (0.00%) 0.20%
handshake_no_resume_aws_lc_rs_1.3_rsa_chacha_client 1932461 1932461 0 (0.00%) 0.20%
handshake_tickets_ring_1.3_rsa_aes_client 40594220 40594220 0 (0.00%) 0.20%
handshake_session_id_ring_1.3_rsa_aes_server 41601128 41601128 0 (0.00%) 0.20%
handshake_no_resume_ring_1.3_ecdsap384_aes_server 7564316 7564316 0 (0.00%) 0.20%
handshake_tickets_ring_1.3_ecdsap256_chacha_client 40515976 40515976 0 (0.00%) 0.20%
handshake_no_resume_ring_1.3_rsa_chacha_server 11430729 11430729 0 (0.00%) 0.20%
handshake_session_id_ring_1.3_ecdsap256_chacha_client 40198148 40198148 0 (0.00%) 0.20%
handshake_tickets_ring_1.3_ecdsap384_aes_client 40586975 40586975 0 (0.00%) 0.20%
handshake_session_id_ring_1.3_ecdsap256_aes_server 41603721 41603721 0 (0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.2_rsa_aes_client 4214929 4214929 0 (0.00%) 0.20%
handshake_tickets_ring_1.3_ecdsap256_aes_client 40590226 40590226 0 (0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.2_rsa_aes_client 3872695 3872695 0 (0.00%) 0.20%
handshake_session_id_ring_1.3_ecdsap384_chacha_client 40195207 40195207 0 (0.00%) 0.20%
handshake_tickets_ring_1.3_ecdsap384_chacha_server 41966108 41966108 0 (0.00%) 0.20%
handshake_no_resume_ring_1.3_ecdsap256_aes_client 3621076 3621076 0 (0.00%) 0.30%
handshake_session_id_ring_1.2_rsa_aes_client 4236939 4236939 0 (0.00%) 0.20%

Wall-time

Significant differences

There are no significant wall-time differences

Other differences

Click to expand
Scenario Baseline Candidate Diff Threshold
transfer_no_resume_aws_lc_rs_1.2_rsa_aes 5.04 ms 4.99 ms -0.04 ms (-0.88%) 4.32%
transfer_no_resume_aws_lc_rs_1.3_ecdsap256_aes 4.46 ms 4.42 ms -0.04 ms (-0.86%) 3.87%
transfer_no_resume_aws_lc_rs_1.3_rsa_aes 5.10 ms 5.06 ms -0.04 ms (-0.79%) 3.66%
transfer_no_resume_ring_1.3_ecdsap256_aes 6.33 ms 6.29 ms -0.05 ms (-0.76%) 2.87%
transfer_no_resume_aws_lc_rs_1.3_ecdsap384_aes 5.18 ms 5.14 ms -0.04 ms (-0.75%) 3.61%
transfer_no_resume_ring_1.3_rsa_aes 6.83 ms 6.78 ms -0.05 ms (-0.72%) 2.96%
handshake_no_resume_aws_lc_rs_1.3_ecdsap256_chacha 456.51 µs 453.34 µs -3.17 µs (-0.69%) 2.82%
handshake_no_resume_ring_1.3_ecdsap256_aes 505.29 µs 501.95 µs -3.33 µs (-0.66%) 2.30%
transfer_no_resume_ring_1.2_rsa_aes 6.75 ms 6.70 ms -0.04 ms (-0.66%) 2.67%
handshake_no_resume_aws_lc_rs_1.3_ecdsap256_aes 457.92 µs 455.29 µs -2.62 µs (-0.57%) 3.11%
handshake_no_resume_ring_1.3_ecdsap256_chacha 502.31 µs 499.62 µs -2.69 µs (-0.54%) 2.39%
transfer_no_resume_ring_1.3_ecdsap384_aes 9.49 ms 9.44 ms -0.05 ms (-0.53%) 1.95%
handshake_tickets_ring_1.2_rsa_aes 1.61 ms 1.60 ms -0.01 ms (-0.49%) 1.45%
handshake_no_resume_aws_lc_rs_1.3_rsa_chacha 1.10 ms 1.10 ms -0.00 ms (-0.45%) 3.56%
transfer_no_resume_aws_lc_rs_1.3_ecdsap256_chacha 12.94 ms 12.89 ms -0.05 ms (-0.40%) 1.45%
handshake_tickets_aws_lc_rs_1.2_rsa_aes 1.76 ms 1.76 ms -0.01 ms (-0.39%) 1.76%
handshake_session_id_aws_lc_rs_1.2_rsa_aes 1.60 ms 1.59 ms -0.01 ms (-0.38%) 1.65%
handshake_session_id_aws_lc_rs_1.3_rsa_aes 4.95 ms 4.93 ms -0.02 ms (-0.37%) 1.36%
transfer_no_resume_ring_1.3_rsa_chacha 13.47 ms 13.42 ms -0.05 ms (-0.36%) 1.35%
handshake_session_id_aws_lc_rs_1.3_ecdsap256_aes 4.29 ms 4.27 ms -0.02 ms (-0.36%) 1.25%
transfer_no_resume_ring_1.3_ecdsap256_chacha 12.97 ms 12.93 ms -0.05 ms (-0.36%) 1.27%
transfer_no_resume_aws_lc_rs_1.3_rsa_chacha 13.58 ms 13.53 ms -0.05 ms (-0.36%) 1.58%
handshake_session_id_ring_1.2_rsa_aes 1.52 ms 1.52 ms -0.01 ms (-0.34%) 1.00%
transfer_no_resume_aws_lc_rs_1.3_ecdsap384_chacha 13.66 ms 13.62 ms -0.05 ms (-0.33%) 1.46%
handshake_no_resume_aws_lc_rs_1.3_rsa_aes 1.09 ms 1.09 ms -0.00 ms (-0.30%) 2.44%
handshake_session_id_aws_lc_rs_1.3_ecdsap384_aes 5.00 ms 4.99 ms -0.01 ms (-0.29%) 1.30%
transfer_no_resume_ring_1.3_ecdsap384_chacha 16.13 ms 16.08 ms -0.05 ms (-0.28%) 1.00%
handshake_tickets_aws_lc_rs_1.3_rsa_aes 5.14 ms 5.12 ms -0.01 ms (-0.27%) 1.18%
handshake_no_resume_aws_lc_rs_1.3_ecdsap384_aes 1.17 ms 1.17 ms -0.00 ms (-0.26%) 1.27%
handshake_no_resume_ring_1.3_rsa_aes 998.89 µs 996.36 µs -2.53 µs (-0.25%) 1.00%
handshake_tickets_aws_lc_rs_1.3_ecdsap256_aes 4.49 ms 4.48 ms -0.01 ms (-0.24%) 1.25%
handshake_session_id_ring_1.3_ecdsap256_aes 6.45 ms 6.44 ms -0.02 ms (-0.24%) 1.00%
handshake_no_resume_ring_1.3_rsa_chacha 997.84 µs 995.56 µs -2.27 µs (-0.23%) 1.06%
handshake_tickets_aws_lc_rs_1.3_ecdsap384_aes 5.20 ms 5.19 ms -0.01 ms (-0.22%) 1.21%
handshake_session_id_ring_1.3_rsa_aes 6.95 ms 6.93 ms -0.01 ms (-0.21%) 1.00%
handshake_session_id_ring_1.3_ecdsap256_chacha 6.40 ms 6.39 ms -0.01 ms (-0.20%) 1.00%
handshake_tickets_aws_lc_rs_1.3_rsa_chacha 5.12 ms 5.11 ms -0.01 ms (-0.20%) 1.43%
handshake_tickets_ring_1.3_ecdsap256_aes 6.52 ms 6.51 ms -0.01 ms (-0.19%) 1.00%
handshake_tickets_aws_lc_rs_1.3_ecdsap256_chacha 4.47 ms 4.46 ms -0.01 ms (-0.19%) 1.48%
handshake_session_id_aws_lc_rs_1.3_rsa_chacha 4.92 ms 4.91 ms -0.01 ms (-0.19%) 1.11%
handshake_tickets_ring_1.3_ecdsap256_chacha 6.47 ms 6.46 ms -0.01 ms (-0.19%) 1.00%
handshake_no_resume_aws_lc_rs_1.3_ecdsap384_chacha 1.17 ms 1.17 ms -0.00 ms (-0.19%) 1.13%
handshake_tickets_ring_1.3_rsa_aes 7.02 ms 7.00 ms -0.01 ms (-0.18%) 1.00%
handshake_session_id_ring_1.3_rsa_chacha 6.89 ms 6.88 ms -0.01 ms (-0.17%) 1.00%
handshake_no_resume_aws_lc_rs_1.2_rsa_aes 1.06 ms 1.06 ms -0.00 ms (-0.17%) 1.72%
handshake_no_resume_ring_1.2_rsa_aes 992.33 µs 990.63 µs -1.70 µs (-0.17%) 1.18%
handshake_session_id_ring_1.3_ecdsap384_chacha 9.55 ms 9.53 ms -0.02 ms (-0.16%) 1.00%
handshake_tickets_ring_1.3_rsa_chacha 6.96 ms 6.95 ms -0.01 ms (-0.15%) 1.00%
handshake_tickets_aws_lc_rs_1.3_ecdsap384_chacha 5.18 ms 5.17 ms -0.01 ms (-0.14%) 1.13%
handshake_session_id_aws_lc_rs_1.3_ecdsap384_chacha 4.97 ms 4.96 ms -0.01 ms (-0.12%) 1.25%
handshake_session_id_ring_1.3_ecdsap384_aes 9.59 ms 9.58 ms -0.01 ms (-0.10%) 1.00%
handshake_session_id_aws_lc_rs_1.3_ecdsap256_chacha 4.26 ms 4.26 ms -0.00 ms (-0.10%) 1.04%
handshake_tickets_ring_1.3_ecdsap384_aes 9.66 ms 9.65 ms -0.01 ms (-0.07%) 1.00%
handshake_no_resume_ring_1.3_ecdsap384_chacha 3.66 ms 3.65 ms -0.00 ms (-0.06%) 1.00%
handshake_tickets_ring_1.3_ecdsap384_chacha 9.61 ms 9.61 ms -0.01 ms (-0.06%) 1.00%
handshake_no_resume_ring_1.3_ecdsap384_aes 3.66 ms 3.66 ms -0.00 ms (-0.05%) 1.00%

Additional information

Historical results

Checkout details:

@codecov

codecov Bot commented Nov 26, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.65%. Comparing base (3abca76) to head (4950205).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2243   +/-   ##
=======================================
  Coverage   94.65%   94.65%           
=======================================
  Files         102      102           
  Lines       23917    23917           
=======================================
  Hits        22638    22638           
  Misses       1279     1279           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@djc djc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

It feels like the MSRV section could use a bit more structure, the current versions feels like a somewhat lose collection of points. Maybe think about how that could be more cohesive? Maybe turn it into a bullet list?

Comment thread SECURITY.md Outdated

### Minimum Supported Rust Version

Our MSRV will be no more recent than 9 versions old, or approximately 12 months.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little wary about promising more than about 4-6 versions. Note that Tokio promises 6 months (4 versions) but are usually more conservative in practice. In that sense, I think it often pays off to underpromise and overdeliver.

Also note that (a) tokio-rustls represents about 80% of rustls recent downloads and (b) we bump the tokio-rustls MSRV whenever necessary for a Tokio bump so practically our usability (at least without some amount of pinning) is limited by that.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While toward the end we were feeling the pain, we only recently went from an N-19 MSRV (and N-16 before that, in April of this year), and I don't recall that being exceptionally painful. Though there is obviously an opportunity cost there that is difficult to measure.

So I think N-9 is conservative, but not exceptionally so when compared to our recent MSRV history.

My main concern with N-9 right now is that the ecosystem will move more quickly than usual to take advantage of the 2024 edition (which I think we saw with 1.56).

Comment thread SECURITY.md Outdated
Comment on lines +44 to +49
Once we reach 1.0.0, we will not make MSRV changes in patch releases.

We will not make MSRV changes to security maintenance branches.

> [!NOTE]
> For the avoidance of doubt: security maintenance branches exist for each
> release line _that is not the latest_: so (at the time of writing) 0.22
> and 0.21 have maintenance branches, but 0.23 does not and is released from
> the `main` branch.

@tnull tnull Nov 26, 2024 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I highly appreciate the effort here. However, please note that, as the latest branch isn't considered a maintenance branch, this part of the policy here would mean that any project that keeps any kind of MSRV guarantee would be barred from upgrading to the latest minor release branch as it would unpredictable when/to what version rustls might bump on a patch release (and what patch releases after that are potentially missed).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that is correct. To do otherwise would mean MSRV changes are only allowed on a breaking release. (ie, 0.24.0 or 1.0.0 would have to decide the MSRV for that entire release line).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that is correct. To do otherwise would mean MSRV changes are only allowed on a breaking release. (ie, 0.24.0 or 1.0.0 would have to decide the MSRV for that entire release line).

I have to say this is highly confusing. It really limits the usefulness of the MSRV policy altogether as most projects would have upgraded whenever you guys decide to bump the MSRV. It essentially traps users into running the newest minor release branch as it might be compliant with the MSRV requirements at the point of adoption, which might change at any moment though, especially if they don't read this fine-print. But even if they carefully read every sentence here, this policy would incentivize them not to run the latest minor branch.

I mean you surely have to see how hard it is to navigate this policy? Also, keep in mind that rustls is not the only dependency that you'll have to monitor for such fine-print.

I understand that you don't see MSRV changes as breaking in rustls and want to maintain the freedom to bump MSRV whenever you feel the need to / like to, but for (direct and transitive) dependent projects MSRV changes are breaking changes, whether you like it or not. :(

@ctz

ctz commented Nov 26, 2024

Copy link
Copy Markdown
Member Author

Maybe think about how that could be more cohesive? Maybe turn it into a bullet list?

Restructured into bullets, and put the MSRV of new deps under its own subheading

@cpu cpu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for writing this down.

Comment thread SECURITY.md Resolved
@djc

djc commented Nov 26, 2024

Copy link
Copy Markdown
Member

Maybe further clarifications:

Once we do 1.x, would we do a security release for 1.0.x after we have released 1.1.0?

As for the point about adding optional dependencies, might want to make it explicit that you intend this to be about non-default optional dependencies only. ("default" and "optional" are technically distinct.)

@ctz

ctz commented Nov 27, 2024

Copy link
Copy Markdown
Member Author

Once we do 1.x, would we do a security release for 1.0.x after we have released 1.1.0?

Hm, good question. I would hope when that time comes, we are swapping the cost of stability for the cost of many security maintenance branches (ie, no). But that would leave people with MSRV requirements with fewer options than today.

I think we'll need to revisit the maintenance policy at 1.0.0 to answer this, and also possibly adjust it to take into account (hopefully!) longer windows between breaking changes (eg, at the moment, if we have 1.x.x which is current for 2 years, then cut 2.0.0, the 1.x.x branch isn't guaranteed any security maintenance at all.)

As for the point about adding optional dependencies, might want to make it explicit that you intend this to be about non-default optional dependencies only. ("default" and "optional" are technically distinct.)

Reworded this.

@ctz
ctz added this pull request to the merge queue Nov 27, 2024
Merged via the queue into main with commit 7623bba Nov 27, 2024
@ctz
ctz deleted the jbp-msrv-policy branch November 27, 2024 09:36
@TheBlueMatt

Copy link
Copy Markdown

I dont believe this MSRV policy is compatible with the new MSRV-aware resolver (post-1.0). Imagine the scenario that rustls ships a 1.1.X branch with an MSRV of rustc 1.98 and then ships a 1.2.X branch that initially has an MSRV of 1.98 but then switches to an MSRV of rustc 1.99 in 1.2.1 with a critical security fix (and at the same time a 1.1.1 is shipped). An MSRV-aware resolver will pick 1.2.0 over 1.1.1 even though 1.1.1 is newer and contains a critical security fix where 1.2.0 does not (and only contains some new features).

@ctz

ctz commented Dec 2, 2024

Copy link
Copy Markdown
Member Author

ships a 1.2.X branch that initially has an MSRV of 1.98 but then switches to an MSRV of rustc 1.99 in 1.2.1

I think we're saying we won't do that:

"Once we reach 1.0.0, we will not make MSRV changes in patch releases."

This means the 1.2.0 branch would start with a MSRV of 1.99, and not change MSRV thereafter.

Ultimately the MSRV-aware resolver does mean there could be successful dependency solutions that do not include security fixes, if your MSRV does not allow for them. There's tooling already to help with that (cargo audit). The situation today is that you'd get a dependency solution that you cannot build, but does include security fixes.

I'd also say that this policy is a minimum, rather than a maximum; and:

I think we'll need to revisit the maintenance policy at 1.0.0 to answer this, and also possibly adjust it to take into account (hopefully!) longer windows between breaking changes (eg, at the moment, if we have 1.x.x which is current for 2 years, then cut 2.0.0, the 1.x.x branch isn't guaranteed any security maintenance at all.)

@TheBlueMatt

Copy link
Copy Markdown

I think we're saying we won't do that:

Ah, okay, I was confused by the discussion in the other issue on the current (pre-1.0) stance...would be nice to get 1.0 so that there's an MSRV policy for minor versions :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants