mirror of
				https://github.com/mozilla/gecko-dev.git
				synced 2025-10-31 16:28:05 +02:00 
			
		
		
		
	 6bb56859a3
			
		
	
	
		6bb56859a3
		
	
	
	
	
		
			
			Started a "developing rust components" section. It's quite bare now, but I think we can add more to it as part of https://bugzilla.mozilla.org/show_bug.cgi?id=1949287. Differential Revision: https://phabricator.services.mozilla.com/D238840
		
			
				
	
	
	
	
		
			792 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			792 B
		
	
	
	
	
	
	
	
The Example Shared Rust Component
If you want to get started with shared Rust Component development, check out the Example component. It implements a basic TODO app as a way to show common patterns in component development and useful support crates that you can use. Feel free to copy and paste code from there as the starting point for your component.
Also see the Example component CLI. Providing a command-line interface for your component is a good way to show how applications can use your app. It also gives you a way to execute the code, which can provide a good way to test your code (alongside unit-test of course).