Skip to content

Commit d53ae2e

Browse files
committed
feat(init): init repo w/ cargo init
Signed-off-by: Deep Panchal <[email protected]>
0 parents  commit d53ae2e

File tree

6 files changed

+142
-0
lines changed

6 files changed

+142
-0
lines changed

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Source: https://github.com/alexkaratarakis/gitattributes/blob/master/Rust.gitattributes
2+
# Auto detect text files and perform normalization
3+
* text=auto
4+
5+
*.rs text diff=rust
6+
*.toml text diff=toml
7+
Cargo.lock text

.gitignore

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/rust,rust-analyzer,intellij+all,direnv
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=rust,rust-analyzer,intellij+all,direnv
3+
4+
### direnv ###
5+
.direnv
6+
.envrc
7+
8+
### Intellij+all ###
9+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
10+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
11+
12+
# User-specific stuff
13+
.idea/**/workspace.xml
14+
.idea/**/tasks.xml
15+
.idea/**/usage.statistics.xml
16+
.idea/**/dictionaries
17+
.idea/**/shelf
18+
19+
# AWS User-specific
20+
.idea/**/aws.xml
21+
22+
# Generated files
23+
.idea/**/contentModel.xml
24+
25+
# Sensitive or high-churn files
26+
.idea/**/dataSources/
27+
.idea/**/dataSources.ids
28+
.idea/**/dataSources.local.xml
29+
.idea/**/sqlDataSources.xml
30+
.idea/**/dynamic.xml
31+
.idea/**/uiDesigner.xml
32+
.idea/**/dbnavigator.xml
33+
34+
# Gradle
35+
.idea/**/gradle.xml
36+
.idea/**/libraries
37+
38+
# Gradle and Maven with auto-import
39+
# When using Gradle or Maven with auto-import, you should exclude module files,
40+
# since they will be recreated, and may cause churn. Uncomment if using
41+
# auto-import.
42+
# .idea/artifacts
43+
# .idea/compiler.xml
44+
# .idea/jarRepositories.xml
45+
# .idea/modules.xml
46+
# .idea/*.iml
47+
# .idea/modules
48+
# *.iml
49+
# *.ipr
50+
51+
# CMake
52+
cmake-build-*/
53+
54+
# Mongo Explorer plugin
55+
.idea/**/mongoSettings.xml
56+
57+
# File-based project format
58+
*.iws
59+
60+
# IntelliJ
61+
out/
62+
63+
# mpeltonen/sbt-idea plugin
64+
.idea_modules/
65+
66+
# JIRA plugin
67+
atlassian-ide-plugin.xml
68+
69+
# Cursive Clojure plugin
70+
.idea/replstate.xml
71+
72+
# SonarLint plugin
73+
.idea/sonarlint/
74+
75+
# Crashlytics plugin (for Android Studio and IntelliJ)
76+
com_crashlytics_export_strings.xml
77+
crashlytics.properties
78+
crashlytics-build.properties
79+
fabric.properties
80+
81+
# Editor-based Rest Client
82+
.idea/httpRequests
83+
84+
# Android studio 3.1+ serialized cache file
85+
.idea/caches/build_file_checksums.ser
86+
87+
### Intellij+all Patch ###
88+
# Ignore everything but code style settings and run configurations
89+
# that are supposed to be shared within teams.
90+
91+
.idea/*
92+
93+
!.idea/codeStyles
94+
!.idea/runConfigurations
95+
96+
### Rust ###
97+
# Generated by Cargo
98+
# will have compiled files and executables
99+
debug/
100+
target/
101+
102+
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
103+
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
104+
# Cargo.lock
105+
106+
# These are backup files generated by rustfmt
107+
**/*.rs.bk
108+
109+
# MSVC Windows builds of rustc generate these, which store debugging information
110+
*.pdb
111+
112+
### rust-analyzer ###
113+
# Can be generated by other build systems other than cargo (ex: bazelbuild/rust_rules)
114+
rust-project.json
115+
116+
117+
# End of https://www.toptal.com/developers/gitignore/api/rust,rust-analyzer,intellij+all,direnv

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[package]
2+
name = "aws-iot-mqtt-monitor"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]

rust-toolchain.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[toolchain]
2+
channel = "stable"

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("Hello, world!");
3+
}

0 commit comments

Comments
 (0)