# Summary This method strips a long type name like `bevy::render:📷:PerspectiveCameraBundle` down into the bare type name (`PerspectiveCameraBundle`). This is generally useful utility method, needed by #4299 and #5121. As a result: - This method was moved to `bevy_utils` for easier reuse. - The legibility and robustness of this method has been significantly improved. - Harder test cases have been added. This change was split out of #4299 to unblock it and make merging / reviewing the rest of those changes easier. ## Changelog - added `bevy_utils::get_short_name`, which strips the path from a type name for convenient display. - removed the `TypeRegistry::get_short_name` method. Use the function in `bevy_utils` instead.
		
			
				
	
	
		
			17 lines
		
	
	
		
			408 B
		
	
	
	
		
			TOML
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			408 B
		
	
	
	
		
			TOML
		
	
	
	
	
	
[package]
 | 
						|
name = "spancmp"
 | 
						|
version = "0.1.0"
 | 
						|
edition = "2021"
 | 
						|
description = "compare spans for Bevy"
 | 
						|
publish = false
 | 
						|
license = "MIT OR Apache-2.0"
 | 
						|
 | 
						|
[dependencies]
 | 
						|
serde_json = "1.0"
 | 
						|
serde = { version = "1.0", features = ["derive"] }
 | 
						|
clap = { version = "3.2", features = ["derive"] }
 | 
						|
regex = "1.5"
 | 
						|
termcolor = "1.1"
 | 
						|
bevy_utils = { path = "../../crates/bevy_utils", version = "0.8.0-dev" }
 | 
						|
lazy_static = "1.4"
 |