Skip to content

Commit c0083af

Browse files
committed
Identify Cargo.toml and Cargo.lock as cargo and cargo-lock
Introduce dedicated types for Cargo.toml and Cargo.lock files. These are similar to go.mod and go.sum files.
1 parent 80f2107 commit c0083af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

identify/extensions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@
341341
'.zshenv': EXTENSIONS['zsh'],
342342
'AUTHORS': EXTENSIONS['txt'],
343343
'BUILD': EXTENSIONS['bzl'],
344+
'Cargo.toml': EXTENSIONS['toml'] | {'cargo'},
345+
'Cargo.lock': EXTENSIONS['toml'] | {'cargo-lock'},
344346
'CMakeLists.txt': EXTENSIONS['cmake'],
345347
'CHANGELOG': EXTENSIONS['txt'],
346348
'config.ru': EXTENSIONS['rb'],

0 commit comments

Comments
 (0)