Commit 1a8f5e6
committed
build: gate regex API on 'use_std' feature
This commit adds a new 'use_std' feature and enables it by default.
This permits us to one day add support for building regex without
'use_std' (but with 'alloc', probably) by avoiding the introduction
of incompatibilities. Namely, this setup ensures that all of today's
uses of '--no-default-features' won't compile without also adding the
'use_std' feature.
Closes #4571 parent c1b1289 commit 1a8f5e6
3 files changed
+16
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| 533 | + | |
533 | 534 | | |
| 535 | + | |
534 | 536 | | |
| 537 | + | |
535 | 538 | | |
| 539 | + | |
536 | 540 | | |
| 541 | + | |
537 | 542 | | |
| 543 | + | |
538 | 544 | | |
539 | 545 | | |
540 | 546 | | |
| |||
629 | 635 | | |
630 | 636 | | |
631 | 637 | | |
| 638 | + | |
632 | 639 | | |
633 | 640 | | |
634 | 641 | | |
| |||
664 | 671 | | |
665 | 672 | | |
666 | 673 | | |
| 674 | + | |
667 | 675 | | |
668 | 676 | | |
669 | 677 | | |
| |||
0 commit comments